@tscircuit/eval 0.0.287 → 0.0.289
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.
- package/.github/workflows/bun-test.yml +20 -2
- package/dist/blob-url.js +1 -1
- package/dist/eval/index.d.ts +59 -8
- package/dist/eval/index.js +2 -3
- package/dist/lib/index.d.ts +59 -8
- package/dist/lib/index.js +43 -4
- package/dist/webworker/entrypoint.js +353 -350
- package/dist/worker.d.ts +7 -0
- package/dist/worker.js +42 -2
- package/lib/shared/types.ts +7 -0
- package/lib/worker.ts +47 -1
- package/package.json +9 -7
- package/scripts/validate-test-matrix.js +148 -0
- package/tests/{example1-readme-example.test.tsx → examples/example01-readme-example.test.tsx} +1 -1
- package/tests/{example2-multiple-files.test.tsx → examples/example02-multiple-files.test.tsx} +1 -1
- package/tests/{example3-encoded-url.test.tsx → examples/example03-encoded-url.test.tsx} +1 -1
- package/tests/{example4-root-child-issue.test.tsx → examples/example04-root-child-issue.test.tsx} +1 -1
- package/tests/{example5-event-recording.test.tsx → examples/example05-event-recording.test.tsx} +1 -1
- package/tests/{example7-import-default-and-namespace.test.tsx → examples/example07-import-default-and-namespace.test.tsx} +2 -2
- package/tests/{example8-footprinter-to220.test.tsx → examples/example08-footprinter-to220.test.tsx} +1 -1
- package/tests/{example9-not-defined-component.test.tsx → examples/example09-not-defined-component.test.tsx} +1 -1
- package/tests/{example13-webworker-without-entrypoint.test.tsx → examples/example13-webworker-without-entrypoint.test.tsx} +1 -1
- package/tests/{example16-parts-engine.test.tsx → examples/example16-parts-engine.test.tsx} +1 -1
- package/tests/{example17-parse-tscircuit-config.test.tsx → examples/example17-parse-tscircuit-config.test.tsx} +1 -1
- package/tests/{circuit-event-forwarding.test.tsx → features/circuit-event-forwarding.test.tsx} +1 -1
- package/tests/features/fetch-proxy/fetch-override.test.ts +46 -0
- package/tests/features/fetch-proxy/fetch-proxy-validation.test.ts +95 -0
- package/tests/{kill.test.ts → features/kill.test.ts} +5 -3
- package/tests/{manual-edits.test.tsx → features/manual-edits.test.tsx} +2 -2
- package/tests/fixtures/resourcePaths.ts +3 -0
- package/webworker/entrypoint.ts +7 -2
- package/webworker/fetchProxy.ts +83 -0
- package/webworker/import-snippet.ts +2 -4
- /package/tests/{example6-dynamic-load-blob-url.test.tsx → examples/example06-dynamic-load-blob-url.test.tsx} +0 -0
- /package/tests/{example10-run-tscircuit-code.test.tsx → examples/example10-run-tscircuit-code.test.tsx} +0 -0
- /package/tests/{example11-flexible-import-extensions.test.tsx → examples/example11-flexible-import-extensions.test.tsx} +0 -0
- /package/tests/{example12-import-from-subdirectory.test.tsx → examples/example12-import-from-subdirectory.test.tsx} +0 -0
- /package/tests/{example14-run-tscircuit-module.test.tsx → examples/example14-run-tscircuit-module.test.tsx} +0 -0
- /package/tests/{example15-run-tscircuit-module-with-props.test.tsx → examples/example15-run-tscircuit-module-with-props.test.tsx} +0 -0
- /package/tests/{parent-directory-import.test.tsx → features/parent-directory-import.test.tsx} +0 -0
- /package/tests/{platform-config.test.tsx → features/platform-config.test.tsx} +0 -0
- /package/tests/{prioritize-default-export.test.tsx → features/prioritize-default-export.test.tsx} +0 -0
- /package/tests/{group-wrapper.test.tsx → repros/group-wrapper.test.tsx} +0 -0
- /package/tests/{nine-keyboard-default-export.test.tsx → repros/nine-keyboard-default-export.test.tsx} +0 -0
- /package/tests/{get-imports-from-code.test.tsx → util-fns/get-imports-from-code.test.tsx} +0 -0
- /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
|
|
43
|
+
- name: Run tests for ${{ matrix.test-dir }}
|
|
44
|
+
run: bun test tests/${{ matrix.test-dir }} --timeout 30000
|