Skip to content

Commit d79fee8

Browse files
author
mike dupont
committed
collect only
1 parent 8706e42 commit d79fee8

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

maketest.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
set -x
4+
shopt -s globstar # to expand '**' into nested directories
5+
6+
for f in ./src/**/*.test.ts; do
7+
#NODE_OPTIONS=--experimental-vm-modules npx jest $f;
8+
# NODE_OPTIONS=--experimental-vm-modules NO_INSIGHT=true clinic flame -- node ./node_modules/jest-cli/bin/jest.js $f
9+
echo NODE_OPTIONS=--experimental-vm-modules NO_INSIGHT=true clinic doctor --collect-only -- node ./node_modules/jest-cli/bin/jest.js $f
10+
done

run

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1+
clinic doctor --collect-only -- node --perf-basic-prof --enable-source-maps --stack-trace-limit=1000 src/build/run.js $@
12

2-
clinic doctor -- node --perf-basic-prof --enable-source-maps --stack-trace-limit=1000 src/build/run.js $@

run-all-tests.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ set +e
77

88
#######
99
find /app > /tmp/app-files-list.txt
10-
NO_INSIGHT=true clinic doctor -- node /usr/local/bin/pnpm run test
11-
NO_INSIGHT=true clinic doctor -- node /usr/local/bin/pnpm run test:integration
12-
NO_INSIGHT=true clinic doctor -- node /usr/local/bin/pnpm run test:unit
13-
NO_INSIGHT=true clinic doctor -- node /usr/local/bin/pnpm run test:e2e
10+
NO_INSIGHT=true clinic doctor --collect-only -- node /usr/local/bin/pnpm run test
11+
NO_INSIGHT=true clinic doctor --collect-only -- node /usr/local/bin/pnpm run test:integration
12+
NO_INSIGHT=true clinic doctor --collect-only -- node /usr/local/bin/pnpm run test:unit
13+
NO_INSIGHT=true clinic doctor --collect-only -- node /usr/local/bin/pnpm run test:e2e
1414

1515
#######
1616
NO_INSIGHT=true clinic flame -- node /usr/local/bin/pnpm run test

run-jest-tests.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ shopt -s globstar # to expand '**' into nested directories
55

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

0 commit comments

Comments
 (0)