@ricsam/quickjs-test-environment 0.0.1 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +73 -43
  2. package/dist/cjs/describe.cjs +180 -0
  3. package/dist/cjs/describe.cjs.map +10 -0
  4. package/dist/cjs/expect.cjs +622 -0
  5. package/dist/cjs/expect.cjs.map +10 -0
  6. package/dist/cjs/handle.cjs +79 -0
  7. package/dist/cjs/handle.cjs.map +10 -0
  8. package/dist/cjs/hooks.cjs +83 -0
  9. package/dist/cjs/hooks.cjs.map +10 -0
  10. package/dist/cjs/index.cjs +39 -0
  11. package/dist/cjs/index.cjs.map +10 -0
  12. package/dist/cjs/package.json +5 -0
  13. package/dist/cjs/runner.cjs +346 -0
  14. package/dist/cjs/runner.cjs.map +10 -0
  15. package/dist/cjs/setup.cjs +70 -0
  16. package/dist/cjs/setup.cjs.map +10 -0
  17. package/dist/cjs/types.cjs +26 -0
  18. package/dist/cjs/types.cjs.map +9 -0
  19. package/dist/mjs/describe.mjs +149 -0
  20. package/dist/mjs/describe.mjs.map +10 -0
  21. package/dist/mjs/expect.mjs +591 -0
  22. package/dist/mjs/expect.mjs.map +10 -0
  23. package/dist/mjs/handle.mjs +48 -0
  24. package/dist/mjs/handle.mjs.map +10 -0
  25. package/dist/mjs/hooks.mjs +52 -0
  26. package/dist/mjs/hooks.mjs.map +10 -0
  27. package/dist/mjs/index.mjs +8 -0
  28. package/dist/mjs/index.mjs.map +10 -0
  29. package/dist/mjs/package.json +5 -0
  30. package/dist/mjs/runner.mjs +315 -0
  31. package/dist/mjs/runner.mjs.map +10 -0
  32. package/dist/mjs/setup.mjs +39 -0
  33. package/dist/mjs/setup.mjs.map +10 -0
  34. package/dist/mjs/types.mjs +3 -0
  35. package/dist/mjs/types.mjs.map +9 -0
  36. package/dist/types/globals/describe.d.ts +5 -0
  37. package/dist/types/globals/expect.d.ts +3 -0
  38. package/dist/types/globals/hooks.d.ts +3 -0
  39. package/dist/types/handle.d.ts +2 -0
  40. package/dist/types/index.d.ts +2 -0
  41. package/dist/types/runner.d.ts +5 -0
  42. package/dist/types/setup.d.ts +3 -0
  43. package/dist/types/types.d.ts +95 -0
  44. package/package.json +49 -6
package/README.md CHANGED
@@ -1,45 +1,75 @@
1
1
  # @ricsam/quickjs-test-environment
2
2
 
3
- ## ⚠️ IMPORTANT NOTICE ⚠️
4
-
5
- **This package is created solely for the purpose of setting up OIDC (OpenID Connect) trusted publishing with npm.**
6
-
7
- This is **NOT** a functional package and contains **NO** code or functionality beyond the OIDC setup configuration.
8
-
9
- ## Purpose
10
-
11
- This package exists to:
12
- 1. Configure OIDC trusted publishing for the package name `@ricsam/quickjs-test-environment`
13
- 2. Enable secure, token-less publishing from CI/CD workflows
14
- 3. Establish provenance for packages published under this name
15
-
16
- ## What is OIDC Trusted Publishing?
17
-
18
- OIDC trusted publishing allows package maintainers to publish packages directly from their CI/CD workflows without needing to manage npm access tokens. Instead, it uses OpenID Connect to establish trust between the CI/CD provider (like GitHub Actions) and npm.
19
-
20
- ## Setup Instructions
21
-
22
- To properly configure OIDC trusted publishing for this package:
23
-
24
- 1. Go to [npmjs.com](https://www.npmjs.com/) and navigate to your package settings
25
- 2. Configure the trusted publisher (e.g., GitHub Actions)
26
- 3. Specify the repository and workflow that should be allowed to publish
27
- 4. Use the configured workflow to publish your actual package
28
-
29
- ## DO NOT USE THIS PACKAGE
30
-
31
- This package is a placeholder for OIDC configuration only. It:
32
- - Contains no executable code
33
- - Provides no functionality
34
- - Should not be installed as a dependency
35
- - Exists only for administrative purposes
36
-
37
- ## More Information
38
-
39
- For more details about npm's trusted publishing feature, see:
40
- - [npm Trusted Publishing Documentation](https://docs.npmjs.com/generating-provenance-statements)
41
- - [GitHub Actions OIDC Documentation](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)
42
-
43
- ---
44
-
45
- **Maintained for OIDC setup purposes only**
3
+ Test primitives for running tests in sandboxed QuickJS. Provides a Bun/Jest/Vitest-compatible API with handler-based result streaming.
4
+
5
+ ```typescript
6
+ import { setupTestEnvironment } from "@ricsam/quickjs-test-environment";
7
+
8
+ const handle = setupTestEnvironment(context, {
9
+ onTestPass: (test) => console.log(`✓ ${test.fullName}`),
10
+ onTestFail: (test) => console.log(`✗ ${test.fullName}: ${test.error?.message}`),
11
+ onRunComplete: (results) => {
12
+ console.log(`\n${results.passed}/${results.total} tests passed`);
13
+ },
14
+ });
15
+ ```
16
+
17
+ **Injected Globals:**
18
+ - `describe`, `it`, `test` (with `.skip`, `.only`, `.todo` modifiers)
19
+ - `beforeAll`, `afterAll`, `beforeEach`, `afterEach`
20
+ - `expect` with matchers (`toBe`, `toEqual`, `toThrow`, etc.) and modifiers (`.not`, `.resolves`, `.rejects`)
21
+
22
+ **Usage in QuickJS:**
23
+
24
+ ```javascript
25
+ describe("Math operations", () => {
26
+ beforeEach(() => {
27
+ // setup before each test
28
+ });
29
+
30
+ it("should add numbers", () => {
31
+ expect(1 + 1).toBe(2);
32
+ });
33
+
34
+ it("should multiply numbers", async () => {
35
+ await Promise.resolve();
36
+ expect(2 * 3).toEqual(6);
37
+ });
38
+
39
+ describe("edge cases", () => {
40
+ it.skip("should handle infinity", () => {
41
+ expect(1 / 0).toBe(Infinity);
42
+ });
43
+ });
44
+ });
45
+ ```
46
+
47
+ **Running tests from host:**
48
+
49
+ ```typescript
50
+ // Load untrusted test code
51
+ context.evalCode(userProvidedTestCode);
52
+
53
+ // Check test count
54
+ console.log(`Found ${handle.getTestCount()} tests`);
55
+
56
+ // Run all registered tests
57
+ const results = await handle.run();
58
+ console.log(`${results.passed}/${results.total} passed`);
59
+
60
+ // Reset for re-running (optional)
61
+ handle.reset();
62
+
63
+ handle.dispose();
64
+ ```
65
+
66
+ **Event Handlers:**
67
+
68
+ | Handler | Description |
69
+ |---------|-------------|
70
+ | `onSuiteStart` | Called when a describe block begins |
71
+ | `onSuiteEnd` | Called when a describe block completes |
72
+ | `onTestStart` | Called before each test runs |
73
+ | `onTestPass` | Called when a test passes |
74
+ | `onTestFail` | Called when a test fails |
75
+ | `onRunComplete` | Called after all tests complete |
@@ -0,0 +1,180 @@
1
+ // @bun @bun-cjs
2
+ (function(exports, require, module, __filename, __dirname) {var __defProp = Object.defineProperty;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __moduleCache = /* @__PURE__ */ new WeakMap;
7
+ var __toCommonJS = (from) => {
8
+ var entry = __moduleCache.get(from), desc;
9
+ if (entry)
10
+ return entry;
11
+ entry = __defProp({}, "__esModule", { value: true });
12
+ if (from && typeof from === "object" || typeof from === "function")
13
+ __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ }));
17
+ __moduleCache.set(from, entry);
18
+ return entry;
19
+ };
20
+ var __export = (target, all) => {
21
+ for (var name in all)
22
+ __defProp(target, name, {
23
+ get: all[name],
24
+ enumerable: true,
25
+ configurable: true,
26
+ set: (newValue) => all[name] = () => newValue
27
+ });
28
+ };
29
+
30
+ // packages/test-environment/src/globals/describe.ts
31
+ var exports_describe = {};
32
+ __export(exports_describe, {
33
+ setupIt: () => setupIt,
34
+ setupDescribe: () => setupDescribe,
35
+ createSuite: () => createSuite
36
+ });
37
+ module.exports = __toCommonJS(exports_describe);
38
+ var suiteIdCounter = 0;
39
+ var testIdCounter = 0;
40
+ function createSuite(name, parent, modifier = "none") {
41
+ return {
42
+ id: `suite_${++suiteIdCounter}`,
43
+ name,
44
+ path: parent ? [...parent.path, name] : [name],
45
+ tests: [],
46
+ beforeAll: [],
47
+ afterAll: [],
48
+ beforeEach: [],
49
+ afterEach: [],
50
+ children: [],
51
+ parent,
52
+ modifier
53
+ };
54
+ }
55
+ function setupDescribe(context, state) {
56
+ const handles = [];
57
+ const createDescribeFn = (modifier) => {
58
+ return context.newFunction("describe", (nameHandle, fnHandle) => {
59
+ const name = context.getString(nameHandle);
60
+ const suite = createSuite(name, state.currentSuite, modifier);
61
+ if (state.currentSuite) {
62
+ state.currentSuite.children.push(suite);
63
+ } else {
64
+ state.suites.push(suite);
65
+ }
66
+ const previousSuite = state.currentSuite;
67
+ state.currentSuite = suite;
68
+ try {
69
+ const result = context.callFunction(fnHandle, context.undefined);
70
+ if (result.error) {
71
+ const error = context.dump(result.error);
72
+ result.error.dispose();
73
+ throw new Error(`Error in describe "${name}": ${error}`);
74
+ }
75
+ result.value.dispose();
76
+ } finally {
77
+ state.currentSuite = previousSuite;
78
+ }
79
+ return context.undefined;
80
+ });
81
+ };
82
+ const describeFn = createDescribeFn("none");
83
+ context.setProp(context.global, "describe", describeFn);
84
+ handles.push(describeFn);
85
+ const describeSkipFn = createDescribeFn("skip");
86
+ context.setProp(describeFn, "skip", describeSkipFn);
87
+ handles.push(describeSkipFn);
88
+ const describeOnlyFn = createDescribeFn("only");
89
+ context.setProp(describeFn, "only", describeOnlyFn);
90
+ handles.push(describeOnlyFn);
91
+ const describeTodoFn = context.newFunction("describe.todo", (nameHandle, fnHandle) => {
92
+ const name = context.getString(nameHandle);
93
+ const suite = createSuite(name, state.currentSuite, "todo");
94
+ if (state.currentSuite) {
95
+ state.currentSuite.children.push(suite);
96
+ } else {
97
+ state.suites.push(suite);
98
+ }
99
+ if (fnHandle && context.typeof(fnHandle) === "function") {
100
+ const previousSuite = state.currentSuite;
101
+ state.currentSuite = suite;
102
+ try {
103
+ const result = context.callFunction(fnHandle, context.undefined);
104
+ if (result.error) {
105
+ result.error.dispose();
106
+ } else {
107
+ result.value.dispose();
108
+ }
109
+ } finally {
110
+ state.currentSuite = previousSuite;
111
+ }
112
+ }
113
+ return context.undefined;
114
+ });
115
+ context.setProp(describeFn, "todo", describeTodoFn);
116
+ handles.push(describeTodoFn);
117
+ return handles;
118
+ }
119
+ function setupIt(context, state) {
120
+ const handles = [];
121
+ const createItFn = (modifier) => {
122
+ return context.newFunction("it", (nameHandle, fnHandle) => {
123
+ const name = context.getString(nameHandle);
124
+ if (!state.currentSuite) {
125
+ const rootSuite = createSuite("(root)", null);
126
+ state.suites.push(rootSuite);
127
+ state.currentSuite = rootSuite;
128
+ }
129
+ const fnDup = fnHandle.dup();
130
+ const test = {
131
+ id: `test_${++testIdCounter}`,
132
+ name,
133
+ fn: fnDup,
134
+ suite: state.currentSuite,
135
+ modifier
136
+ };
137
+ state.currentSuite.tests.push(test);
138
+ return context.undefined;
139
+ });
140
+ };
141
+ const itFn = createItFn("none");
142
+ context.setProp(context.global, "it", itFn);
143
+ handles.push(itFn);
144
+ const itSkipFn = createItFn("skip");
145
+ context.setProp(itFn, "skip", itSkipFn);
146
+ handles.push(itSkipFn);
147
+ const itOnlyFn = createItFn("only");
148
+ context.setProp(itFn, "only", itOnlyFn);
149
+ handles.push(itOnlyFn);
150
+ const itTodoFn = context.newFunction("it.todo", (nameHandle, fnHandle) => {
151
+ const name = context.getString(nameHandle);
152
+ if (!state.currentSuite) {
153
+ const rootSuite = createSuite("(root)", null);
154
+ state.suites.push(rootSuite);
155
+ state.currentSuite = rootSuite;
156
+ }
157
+ const fnDup = fnHandle && context.typeof(fnHandle) === "function" ? fnHandle.dup() : context.undefined.dup();
158
+ const test = {
159
+ id: `test_${++testIdCounter}`,
160
+ name,
161
+ fn: fnDup,
162
+ suite: state.currentSuite,
163
+ modifier: "todo"
164
+ };
165
+ state.currentSuite.tests.push(test);
166
+ return context.undefined;
167
+ });
168
+ context.setProp(itFn, "todo", itTodoFn);
169
+ handles.push(itTodoFn);
170
+ const testFn = itFn.dup();
171
+ context.setProp(context.global, "test", testFn);
172
+ handles.push(testFn);
173
+ context.setProp(testFn, "skip", itSkipFn);
174
+ context.setProp(testFn, "only", itOnlyFn);
175
+ context.setProp(testFn, "todo", itTodoFn);
176
+ return handles;
177
+ }
178
+ })
179
+
180
+ //# debugId=06E934BB816050EB64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/globals/describe.ts"],
4
+ "sourcesContent": [
5
+ "import type { QuickJSContext, QuickJSHandle } from \"quickjs-emscripten\";\nimport type { TestState, RegisteredSuite, RegisteredTest } from \"../types.ts\";\n\nlet suiteIdCounter = 0;\nlet testIdCounter = 0;\n\nexport function createSuite(\n name: string,\n parent: RegisteredSuite | null,\n modifier: RegisteredSuite[\"modifier\"] = \"none\"\n): RegisteredSuite {\n return {\n id: `suite_${++suiteIdCounter}`,\n name,\n path: parent ? [...parent.path, name] : [name],\n tests: [],\n beforeAll: [],\n afterAll: [],\n beforeEach: [],\n afterEach: [],\n children: [],\n parent,\n modifier,\n };\n}\n\nexport function setupDescribe(\n context: QuickJSContext,\n state: TestState\n): QuickJSHandle[] {\n const handles: QuickJSHandle[] = [];\n\n // Helper to create describe function with modifier\n const createDescribeFn = (modifier: RegisteredSuite[\"modifier\"]) => {\n return context.newFunction(\"describe\", (nameHandle, fnHandle) => {\n const name = context.getString(nameHandle);\n\n // Create new suite\n const suite = createSuite(name, state.currentSuite, modifier);\n\n // Add to parent or root\n if (state.currentSuite) {\n state.currentSuite.children.push(suite);\n } else {\n state.suites.push(suite);\n }\n\n // Execute the describe body to discover nested tests\n const previousSuite = state.currentSuite;\n state.currentSuite = suite;\n\n try {\n const result = context.callFunction(fnHandle, context.undefined);\n if (result.error) {\n const error = context.dump(result.error);\n result.error.dispose();\n throw new Error(`Error in describe \"${name}\": ${error}`);\n }\n result.value.dispose();\n } finally {\n state.currentSuite = previousSuite;\n }\n\n return context.undefined;\n });\n };\n\n // describe()\n const describeFn = createDescribeFn(\"none\");\n context.setProp(context.global, \"describe\", describeFn);\n handles.push(describeFn);\n\n // describe.skip()\n const describeSkipFn = createDescribeFn(\"skip\");\n context.setProp(describeFn, \"skip\", describeSkipFn);\n handles.push(describeSkipFn);\n\n // describe.only()\n const describeOnlyFn = createDescribeFn(\"only\");\n context.setProp(describeFn, \"only\", describeOnlyFn);\n handles.push(describeOnlyFn);\n\n // describe.todo() - fn is optional\n const describeTodoFn = context.newFunction(\n \"describe.todo\",\n (nameHandle, fnHandle) => {\n const name = context.getString(nameHandle);\n const suite = createSuite(name, state.currentSuite, \"todo\");\n\n if (state.currentSuite) {\n state.currentSuite.children.push(suite);\n } else {\n state.suites.push(suite);\n }\n\n // Only execute body if provided and is a function\n if (fnHandle && context.typeof(fnHandle) === \"function\") {\n const previousSuite = state.currentSuite;\n state.currentSuite = suite;\n\n try {\n const result = context.callFunction(fnHandle, context.undefined);\n if (result.error) {\n result.error.dispose();\n } else {\n result.value.dispose();\n }\n } finally {\n state.currentSuite = previousSuite;\n }\n }\n\n return context.undefined;\n }\n );\n context.setProp(describeFn, \"todo\", describeTodoFn);\n handles.push(describeTodoFn);\n\n return handles;\n}\n\nexport function setupIt(\n context: QuickJSContext,\n state: TestState\n): QuickJSHandle[] {\n const handles: QuickJSHandle[] = [];\n\n // Helper to create it/test function with modifier\n const createItFn = (modifier: RegisteredTest[\"modifier\"]) => {\n return context.newFunction(\"it\", (nameHandle, fnHandle) => {\n const name = context.getString(nameHandle);\n\n if (!state.currentSuite) {\n // Create implicit root suite for top-level tests\n const rootSuite = createSuite(\"(root)\", null);\n state.suites.push(rootSuite);\n state.currentSuite = rootSuite;\n }\n\n // Dup the function handle to keep it alive\n const fnDup = fnHandle.dup();\n\n const test: RegisteredTest = {\n id: `test_${++testIdCounter}`,\n name,\n fn: fnDup,\n suite: state.currentSuite,\n modifier,\n };\n\n state.currentSuite.tests.push(test);\n\n return context.undefined;\n });\n };\n\n // it()\n const itFn = createItFn(\"none\");\n context.setProp(context.global, \"it\", itFn);\n handles.push(itFn);\n\n // it.skip()\n const itSkipFn = createItFn(\"skip\");\n context.setProp(itFn, \"skip\", itSkipFn);\n handles.push(itSkipFn);\n\n // it.only()\n const itOnlyFn = createItFn(\"only\");\n context.setProp(itFn, \"only\", itOnlyFn);\n handles.push(itOnlyFn);\n\n // it.todo() - fn is optional\n const itTodoFn = context.newFunction(\"it.todo\", (nameHandle, fnHandle) => {\n const name = context.getString(nameHandle);\n\n if (!state.currentSuite) {\n const rootSuite = createSuite(\"(root)\", null);\n state.suites.push(rootSuite);\n state.currentSuite = rootSuite;\n }\n\n // fn is optional for todo - use undefined dup if not provided\n const fnDup =\n fnHandle && context.typeof(fnHandle) === \"function\"\n ? fnHandle.dup()\n : context.undefined.dup();\n\n const test: RegisteredTest = {\n id: `test_${++testIdCounter}`,\n name,\n fn: fnDup,\n suite: state.currentSuite,\n modifier: \"todo\",\n };\n\n state.currentSuite.tests.push(test);\n\n return context.undefined;\n });\n context.setProp(itFn, \"todo\", itTodoFn);\n handles.push(itTodoFn);\n\n // test() - alias for it()\n const testFn = itFn.dup();\n context.setProp(context.global, \"test\", testFn);\n handles.push(testFn);\n\n // test.skip/only/todo - point to same functions as it.*\n context.setProp(testFn, \"skip\", itSkipFn);\n context.setProp(testFn, \"only\", itOnlyFn);\n context.setProp(testFn, \"todo\", itTodoFn);\n\n return handles;\n}\n"
6
+ ],
7
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAI,iBAAiB;AACrB,IAAI,gBAAgB;AAEb,SAAS,WAAW,CACzB,MACA,QACA,WAAwC,QACvB;AAAA,EACjB,OAAO;AAAA,IACL,IAAI,SAAS,EAAE;AAAA,IACf;AAAA,IACA,MAAM,SAAS,CAAC,GAAG,OAAO,MAAM,IAAI,IAAI,CAAC,IAAI;AAAA,IAC7C,OAAO,CAAC;AAAA,IACR,WAAW,CAAC;AAAA,IACZ,UAAU,CAAC;AAAA,IACX,YAAY,CAAC;AAAA,IACb,WAAW,CAAC;AAAA,IACZ,UAAU,CAAC;AAAA,IACX;AAAA,IACA;AAAA,EACF;AAAA;AAGK,SAAS,aAAa,CAC3B,SACA,OACiB;AAAA,EACjB,MAAM,UAA2B,CAAC;AAAA,EAGlC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