Skip to content

Commit

Permalink
Merge pull request #750 from o1-labs/mimoo/portable
Browse files Browse the repository at this point in the history
make unit test script portable
  • Loading branch information
mitschabaude committed Feb 26, 2023
2 parents 8499b0d + eef6e68 commit e10a273
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions run-unit-tests.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/bin/bash
set -e
shopt -s globstar # to expand '**' into nested directories
set -ex

# run the build:test
npm run build:test

for f in ./dist/node/**/*.unit-test.js; do
echo "Running $f"
node $f;
done
# find all unit tests in dist/node and run them
find ./dist/node -name "*.unit-test.js" -print -exec node {} \;

0 comments on commit e10a273

Please sign in to comment.