Skip to content

Commit

Permalink
collect only
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Sep 16, 2024
1 parent 8706e42 commit d79fee8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
10 changes: 10 additions & 0 deletions maketest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
set -x
shopt -s globstar # to expand '**' into nested directories

for f in ./src/**/*.test.ts; do
#NODE_OPTIONS=--experimental-vm-modules npx jest $f;
# NODE_OPTIONS=--experimental-vm-modules NO_INSIGHT=true clinic flame -- node ./node_modules/jest-cli/bin/jest.js $f
echo NODE_OPTIONS=--experimental-vm-modules NO_INSIGHT=true clinic doctor --collect-only -- node ./node_modules/jest-cli/bin/jest.js $f
done
2 changes: 1 addition & 1 deletion run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
clinic doctor --collect-only -- node --perf-basic-prof --enable-source-maps --stack-trace-limit=1000 src/build/run.js $@

clinic doctor -- node --perf-basic-prof --enable-source-maps --stack-trace-limit=1000 src/build/run.js $@
8 changes: 4 additions & 4 deletions run-all-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ set +e

#######
find /app > /tmp/app-files-list.txt
NO_INSIGHT=true clinic doctor -- node /usr/local/bin/pnpm run test
NO_INSIGHT=true clinic doctor -- node /usr/local/bin/pnpm run test:integration
NO_INSIGHT=true clinic doctor -- node /usr/local/bin/pnpm run test:unit
NO_INSIGHT=true clinic doctor -- node /usr/local/bin/pnpm run test:e2e
NO_INSIGHT=true clinic doctor --collect-only -- node /usr/local/bin/pnpm run test
NO_INSIGHT=true clinic doctor --collect-only -- node /usr/local/bin/pnpm run test:integration
NO_INSIGHT=true clinic doctor --collect-only -- node /usr/local/bin/pnpm run test:unit
NO_INSIGHT=true clinic doctor --collect-only -- node /usr/local/bin/pnpm run test:e2e

#######
NO_INSIGHT=true clinic flame -- node /usr/local/bin/pnpm run test
Expand Down
4 changes: 2 additions & 2 deletions run-jest-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ shopt -s globstar # to expand '**' into nested directories

for f in ./src/**/*.test.ts; do
#NODE_OPTIONS=--experimental-vm-modules npx jest $f;
NODE_OPTIONS=--experimental-vm-modules NO_INSIGHT=true clinic flame -- node ./node_modules/jest-cli/bin/jest.js $f
NODE_OPTIONS=--experimental-vm-modules NO_INSIGHT=true clinic doctor -- node ./node_modules/jest-cli/bin/jest.js $f
# NODE_OPTIONS=--experimental-vm-modules NO_INSIGHT=true clinic flame -- node ./node_modules/jest-cli/bin/jest.js $f
NODE_OPTIONS=--experimental-vm-modules NO_INSIGHT=true clinic doctor --collect-only -- node ./node_modules/jest-cli/bin/jest.js $f
done

0 comments on commit d79fee8

Please sign in to comment.