refactor(test): run tests via shell script instead of test.js#79
Merged
refactor(test): run tests via shell script instead of test.js#79
Conversation
Replace the Node.js test runner (test.js) with scripts/test.sh so tests are discovered and run from bash. The test script runs top-level test/*.js files and index.js in test subdirectories, skipping wasm.
szegedi
approved these changes
Mar 3, 2026
tlhunter
pushed a commit
that referenced
this pull request
Mar 19, 2026
Replace the Node.js test runner (test.js) with scripts/test.sh so tests are discovered and run from bash. The test script runs top-level test/*.js files and index.js in test subdirectories, skipping wasm.
tlhunter
pushed a commit
that referenced
this pull request
Mar 20, 2026
Replace the Node.js test runner (test.js) with scripts/test.sh so tests are discovered and run from bash. The test script runs top-level test/*.js files and index.js in test subdirectories, skipping wasm.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Replaces the Node.js test runner with a shell script so tests are discovered and run from bash instead of
require()-based discovery.test.js— the previous runner that usedfs.readdirSyncandrequire('./test/' + file).scripts/test.sh— runs top-leveltest/*.jsfiles andindex.jsin test subdirectories (skippingwasm), with clear "Running …" output per test.package.json— thetestscript now runsbash scripts/test.shinstead ofnode test.Behavior is unchanged: the same tests run in the same order; only the runner implementation and the
yarn test/npm testentrypoint change.Why this approach
nodeprocess. A crash or hang in one test doesn’t take down the whole run, and leaks or global state don’t spill between tests.