Skip to content

Commit d8e2e47

Browse files
committed
refactor(js): split runtime-compat into focused files, run on all runtimes
- Split monolithic runtime-compat.test.mjs into 8 focused files in __test__/runtime-compat/ (basics, builtins, control-flow, error-handling, filesystem, vfs, tool-metadata, security, scripts) plus shared _setup.mjs. - Node now runs BOTH ava (full functional suite) AND runtime-compat tests. - Bun/Deno run runtime-compat + examples. - Update specs/004-testing.md with JS runtime compat testing strategy, CI matrix, maintenance rules, and local run instructions.
1 parent 65f8d1d commit d8e2e47

File tree

13 files changed

+833
-770
lines changed

13 files changed

+833
-770
lines changed

.github/workflows/js.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,18 @@ jobs:
115115
run: npm test
116116
working-directory: crates/bashkit-js
117117

118-
- name: Run runtime-compat tests
118+
- name: Run runtime-compat tests (Node)
119+
if: matrix.runtime == 'node'
120+
run: node --test __test__/runtime-compat/*.test.mjs
121+
working-directory: crates/bashkit-js
122+
123+
- name: Run runtime-compat tests (Bun/Deno)
119124
if: matrix.runtime != 'node'
120-
run: ${{ matrix.run }} __test__/runtime-compat.test.mjs
125+
run: |
126+
for f in __test__/runtime-compat/*.test.mjs; do
127+
echo "--- $f ---"
128+
${{ matrix.run }} "$f"
129+
done
121130
working-directory: crates/bashkit-js
122131

123132
- name: Install example dependencies and link local build

0 commit comments

Comments
 (0)