Skip to content

test(playground): cover bundled libraries in the quickjs sandbox - #70

Open
devsi-bruno wants to merge 2 commits into
usebruno:release/v0.3.0from
devsi-bruno:test/playground-quickjs-libraries
Open

test(playground): cover bundled libraries in the quickjs sandbox#70
devsi-bruno wants to merge 2 commits into
usebruno:release/v0.3.0from
devsi-bruno:test/playground-quickjs-libraries

Conversation

@devsi-bruno

@devsi-bruno devsi-bruno commented Sep 7, 2026

Copy link
Copy Markdown

Jira: BRU-3838

Description

Adds E2E coverage for the QuickJS sandbox's bundled libraries in the docs playground to verify that supported libraries and sandbox-specific behaviors work correctly across pre-request, post-response, and tests scripts.

The coverage includes:

chai (expect / assert), Buffer, btoa / atob, path, ajv, and ajv-formats in a tests script.
axios.get through the sandbox shim.
The playground-specific rejection message when using require('jsonwebtoken').
moment and uuid in a pre-request script, with their output validated through the outgoing request header.
crypto-js in a post-response script.

Covers chai, Buffer/btoa/atob, path and ajv in a tests script; axios.get through the sandbox shim; the playground-specific rejection for jsonwebtoken; moment and uuid in a pre-request script, asserted on the outgoing header; and crypto-js in a post-response script.
@devsi-bruno
devsi-bruno force-pushed the test/playground-quickjs-libraries branch from a40f364 to 29c26e4 Compare September 7, 2026 14:22
Comment thread packages/bruno-api-docs/e2e/tests/playground/script-execution.spec.ts Outdated
Comment thread packages/bruno-api-docs/e2e/tests/playground/script-execution.spec.ts Outdated
Comment thread packages/bruno-api-docs/e2e/tests/playground/script-execution.spec.ts Outdated
Comment thread packages/bruno-api-docs/e2e/tests/playground/script-execution.spec.ts Outdated
Comment thread packages/bruno-api-docs/e2e/tests/playground/script-execution.spec.ts Outdated
Comment thread packages/bruno-api-docs/e2e/tests/playground/script-execution.spec.ts Outdated
Comment thread packages/bruno-api-docs/e2e/tests/playground/script-execution.spec.ts Outdated
Comment thread packages/bruno-api-docs/e2e/tests/playground/script-execution.spec.ts Outdated
Comment thread packages/bruno-api-docs/e2e/tests/playground/script-execution.spec.ts Outdated
@changeset-bot

changeset-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 75eabc6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants