test(playground): cover bundled libraries in the quickjs sandbox - #70
Merged
arpit-bruno merged 3 commits intoSep 22, 2026
Merged
arpit-bruno merged 3 commits into
arpit-bruno merged 3 commits into
Conversation
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
force-pushed
the
test/playground-quickjs-libraries
branch
from
September 7, 2026 14:22
a40f364 to
29c26e4
Compare
sundram-bruno
suggested changes
Sep 8, 2026
🦋 Changeset detectedLatest commit: 207d16f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
sundram-bruno
approved these changes
Sep 21, 2026
arpit-bruno
previously approved these changes
Sep 22, 2026
Add a changeset for patching @opencollection/docs with test coverage for bundled libraries.
arpit-bruno
approved these changes
Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.