feat: handle user tsconfig #30
GitHub Actions / VS Code Test Results (ubuntu-latest, stable, desktop)
failed
Apr 2, 2024 in 1s
13 passed, 1 failed and 0 skipped
❌ test-results/unit.json
14 tests were completed in 99ms with 13 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
out/test/unit/extract/evaluate-typescript.test.js | 3✅ | 1❌ | 24ms | |
out/test/unit/extract/evaluate.test.js | 6✅ | 9ms | ||
out/test/unit/extract/syntax.test.js | 4✅ | 12ms |
❌ out/test/unit/extract/evaluate-typescript.test.js
evaluate typescript
✅ extracts basic suite
✅ extracts basic suite ts syntax
✅ extracts multiple suite
❌ extracts top level await
Transform failed with 1 error:
test.ts:2:0: ERROR: Top-level await is currently not supported with the "cjs" output format
✅ out/test/unit/extract/evaluate.test.js
evaluate
✅ can evaluate and extract a test table
✅ extracts basic suite
✅ handles errors appropriately
✅ runs esbuild-style modules
✅ stubs out requires and placeholds correctly
✅ works with skip/only
✅ out/test/unit/extract/syntax.test.js
syntax
✅ can detect suite but not dynamic tests
✅ extracts basic suite
✅ stubs out requires and placeholds correctly
✅ works with skip/only
Annotations
Check failure on line 0 in test-results/unit.json
github-actions / VS Code Test Results (ubuntu-latest, stable, desktop)
out/test/unit/extract/evaluate-typescript.test.js ► evaluate typescript ► extracts top level await
Failed test found in:
test-results/unit.json
Error:
Transform failed with 1 error:
test.ts:2:0: ERROR: Top-level await is currently not supported with the "cjs" output format
Raw output
Error: Transform failed with 1 error:
test.ts:2:0: ERROR: Top-level await is currently not supported with the "cjs" output format
at failureErrorWithLog (node_modules/esbuild/lib/main.js:1651:15)
at /home/runner/work/mocha-vscode/mocha-vscode/node_modules/esbuild/lib/main.js:849:29
at responseCallbacks.<computed> (node_modules/esbuild/lib/main.js:704:9)
at handleIncomingPacket (node_modules/esbuild/lib/main.js:764:9)
at Socket.readFromStdout (node_modules/esbuild/lib/main.js:680:7)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
Loading