@tscircuit/eval 0.0.288 → 0.0.290

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 (47) hide show
  1. package/.github/workflows/bun-test.yml +20 -2
  2. package/dist/blob-url.js +1 -1
  3. package/dist/eval/index.d.ts +56 -8
  4. package/dist/eval/index.js +17 -1
  5. package/dist/lib/index.d.ts +57 -8
  6. package/dist/lib/index.js +66 -1
  7. package/dist/webworker/entrypoint.js +352 -349
  8. package/dist/worker.d.ts +1 -0
  9. package/dist/worker.js +50 -1
  10. package/lib/runner/CircuitRunner.ts +19 -0
  11. package/lib/shared/types.ts +2 -0
  12. package/lib/worker.ts +61 -0
  13. package/package.json +9 -7
  14. package/scripts/validate-test-matrix.js +148 -0
  15. package/tests/{example1-readme-example.test.tsx → examples/example01-readme-example.test.tsx} +1 -1
  16. package/tests/{example2-multiple-files.test.tsx → examples/example02-multiple-files.test.tsx} +1 -1
  17. package/tests/{example3-encoded-url.test.tsx → examples/example03-encoded-url.test.tsx} +1 -1
  18. package/tests/{example4-root-child-issue.test.tsx → examples/example04-root-child-issue.test.tsx} +1 -1
  19. package/tests/{example5-event-recording.test.tsx → examples/example05-event-recording.test.tsx} +1 -1
  20. package/tests/{example7-import-default-and-namespace.test.tsx → examples/example07-import-default-and-namespace.test.tsx} +2 -2
  21. package/tests/{example8-footprinter-to220.test.tsx → examples/example08-footprinter-to220.test.tsx} +1 -1
  22. package/tests/{example9-not-defined-component.test.tsx → examples/example09-not-defined-component.test.tsx} +1 -1
  23. package/tests/{example13-webworker-without-entrypoint.test.tsx → examples/example13-webworker-without-entrypoint.test.tsx} +1 -1
  24. package/tests/{example16-parts-engine.test.tsx → examples/example16-parts-engine.test.tsx} +1 -1
  25. package/tests/{example17-parse-tscircuit-config.test.tsx → examples/example17-parse-tscircuit-config.test.tsx} +1 -1
  26. package/tests/{circuit-event-forwarding.test.tsx → features/circuit-event-forwarding.test.tsx} +1 -1
  27. package/tests/features/execute-component-runner.test.tsx +47 -0
  28. package/tests/features/execute-component-worker.test.tsx +25 -0
  29. package/tests/{fetch-override.test.ts → features/fetch-proxy/fetch-override.test.ts} +3 -3
  30. package/tests/{fetch-proxy-validation.test.ts → features/fetch-proxy/fetch-proxy-validation.test.ts} +5 -7
  31. package/tests/{kill.test.ts → features/kill.test.ts} +5 -3
  32. package/tests/{manual-edits.test.tsx → features/manual-edits.test.tsx} +2 -2
  33. package/tests/fixtures/resourcePaths.ts +3 -0
  34. package/webworker/entrypoint.ts +58 -2
  35. /package/tests/{example6-dynamic-load-blob-url.test.tsx → examples/example06-dynamic-load-blob-url.test.tsx} +0 -0
  36. /package/tests/{example10-run-tscircuit-code.test.tsx → examples/example10-run-tscircuit-code.test.tsx} +0 -0
  37. /package/tests/{example11-flexible-import-extensions.test.tsx → examples/example11-flexible-import-extensions.test.tsx} +0 -0
  38. /package/tests/{example12-import-from-subdirectory.test.tsx → examples/example12-import-from-subdirectory.test.tsx} +0 -0
  39. /package/tests/{example14-run-tscircuit-module.test.tsx → examples/example14-run-tscircuit-module.test.tsx} +0 -0
  40. /package/tests/{example15-run-tscircuit-module-with-props.test.tsx → examples/example15-run-tscircuit-module-with-props.test.tsx} +0 -0
  41. /package/tests/{parent-directory-import.test.tsx → features/parent-directory-import.test.tsx} +0 -0
  42. /package/tests/{platform-config.test.tsx → features/platform-config.test.tsx} +0 -0
  43. /package/tests/{prioritize-default-export.test.tsx → features/prioritize-default-export.test.tsx} +0 -0
  44. /package/tests/{group-wrapper.test.tsx → repros/group-wrapper.test.tsx} +0 -0
  45. /package/tests/{nine-keyboard-default-export.test.tsx → repros/nine-keyboard-default-export.test.tsx} +0 -0
  46. /package/tests/{get-imports-from-code.test.tsx → util-fns/get-imports-from-code.test.tsx} +0 -0
  47. /package/tests/{getPossibleEntrypointComponentPaths.test.ts → util-fns/getPossibleEntrypointComponentPaths.test.ts} +0 -0
@@ -5,9 +5,27 @@ on:
5
5
  pull_request:
6
6
 
7
7
  jobs:
8
+ validate-test-matrix:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout code
12
+ uses: actions/checkout@v4
13
+
14
+ - name: Setup bun
15
+ uses: oven-sh/setup-bun@v2
16
+ with:
17
+ bun-version: latest
18
+
19
+ - name: Validate test matrix covers all directories
20
+ run: bun run scripts/validate-test-matrix.js
21
+
8
22
  test:
9
23
  runs-on: ubuntu-latest
10
24
  timeout-minutes: 5
25
+ needs: validate-test-matrix
26
+ strategy:
27
+ matrix:
28
+ test-dir: [circuit-runner, custom-component-with-fsmap, examples, features, node-resolution, repros, util-fns]
11
29
 
12
30
  steps:
13
31
  - name: Checkout code
@@ -22,5 +40,5 @@ jobs:
22
40
  run: bun install
23
41
 
24
42
  - run: bun run build
25
- - name: Run tests
26
- run: bun test --timeout 20000
43
+ - name: Run tests for ${{ matrix.test-dir }}
44
+ run: bun test tests/${{ matrix.test-dir }} --timeout 30000