SES bundle smoke tests
This repository contains a bundled SES runtime (now located at lib/okx.bundle.js) and small test harnesses to verify environment features and basic Compartment/module behavior.
Files
lib/okx.bundle.js— the bundled SES/lockdown/Compartment implementation.scripts/ses-smoke-test.js— minimal smoke test that loads the bundle and runs a basicCompartment.evaluate.scripts/ses-checks.js— more comprehensive checks: feature detection, module import/link test, andlockdown()smoke test.
Quickstart
- Ensure Node.js >= 14 is installed.
- From the repository root run:
npm testThis runs node scripts/ses-checks.js which returns exit code 0 on success and non-zero on failure.
CI Integration
- The
npm testscript is CI-friendly and can be used in GitHub Actions or other CI providers. Example GitHub Actions step:
- name: Run SES smoke tests
run: npm testNotes
- No external dependencies are required for the smoke tests.
- If you need expanded tests (live export updates, async dynamic import, stricter lockdown scenarios), I can add them and a sample CI workflow.
Hybrid React frontend
- A minimal React app is scaffolded under
web/using Vite. To run it:
cd web
npm install
npm run devFrom the repository root you can run the dev server with the convenience script:
npm run web:dev