Skip to content

zicloed/jsweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 basic Compartment.evaluate.
  • scripts/ses-checks.js — more comprehensive checks: feature detection, module import/link test, and lockdown() smoke test.

Quickstart

  1. Ensure Node.js >= 14 is installed.
  2. From the repository root run:
npm test

This runs node scripts/ses-checks.js which returns exit code 0 on success and non-zero on failure.

CI Integration

  • The npm test script 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 test

Notes

  • 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 dev

From the repository root you can run the dev server with the convenience script:

npm run web:dev

jsweb

About

JS learning stage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors