diff --git a/maketest.sh b/maketest.sh new file mode 100755 index 000000000..edd7f69ac --- /dev/null +++ b/maketest.sh @@ -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 diff --git a/run b/run index 2558aaa54..b37fa8e6a 100755 --- a/run +++ b/run @@ -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 $@ diff --git a/run-all-tests.sh b/run-all-tests.sh index fe2017d51..e08b4ab7d 100644 --- a/run-all-tests.sh +++ b/run-all-tests.sh @@ -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 diff --git a/run-jest-tests.sh b/run-jest-tests.sh index 1d53f0b4d..25edb995f 100755 --- a/run-jest-tests.sh +++ b/run-jest-tests.sh @@ -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