Skip to content

Commit

Permalink
make unit test script portable
Browse files Browse the repository at this point in the history
  • Loading branch information
mimoo committed Feb 25, 2023
1 parent 4c5fef8 commit eef6e68
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 eef6e68

Please sign in to comment.