Skip to content

Commit 9473f88

Browse files
committed
change test commands to read from module directory instead of part directory
1 parent 79365a2 commit 9473f88

File tree

53 files changed

+8
-17
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+8
-17
lines changed

package.json

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,14 @@
1010
"scripts": {
1111
"start": "react-scripts start",
1212
"build": "react-scripts build",
13-
"test": "./node_modules/.bin/cross-env react-scripts test --env=jsdom",
14-
"test:module1": "./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/part2",
15-
"test:module2": "./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/part3",
16-
"test:module3": "./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/part4",
17-
"test:module4": "./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/part5",
18-
"test:module5": "./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/part6",
19-
"test:module6": "./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/part7",
20-
"test:module7": "./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/part8",
21-
"test:part8": "./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/part8",
22-
"tutor-test:module1": "./node_modules/.bin/cross-env CI=true react-scripts test --env=jsdom --json --noStackTrace src/__tests__/part2",
23-
"tutor-test:module2": "./node_modules/.bin/cross-env CI=true react-scripts test --env=jsdom --json --noStackTrace src/__tests__/part3",
24-
"tutor-test:module3": "./node_modules/.bin/cross-env CI=true react-scripts test --env=jsdom --json --noStackTrace src/__tests__/part4",
25-
"tutor-test:module4": "./node_modules/.bin/cross-env CI=true react-scripts test --env=jsdom --json --noStackTrace src/__tests__/part5",
26-
"tutor-test:module5": "./node_modules/.bin/cross-env CI=true react-scripts test --env=jsdom --json --noStackTrace src/__tests__/part6",
27-
"tutor-test:module6": "./node_modules/.bin/cross-env CI=true react-scripts test --env=jsdom --json --noStackTrace src/__tests__/part7",
28-
"tutor-test:module7": "./node_modules/.bin/cross-env CI=true react-scripts test --env=jsdom --json --noStackTrace src/__tests__/part8",
29-
"tutor-test": "./node_modules/.bin/cross-env CI=true react-scripts test --env=jsdom --json --noStackTrace",
13+
"test": "CI=true ./node_modules/.bin/cross-env react-scripts test --env=jsdom",
14+
"test:module1": "CI=true ./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/module1",
15+
"test:module2": "CI=true ./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/module2",
16+
"test:module3": "CI=true ./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/module3",
17+
"test:module4": "CI=true ./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/module4",
18+
"test:module5": "CI=true ./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/module5",
19+
"test:module6": "CI=true ./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/module6",
20+
"test:module7": "CI=true ./node_modules/.bin/cross-env react-scripts test --env=jsdom --noStackTrace src/__tests__/module7",
3021
"eject": "react-scripts eject"
3122
},
3223
"jest": {

0 commit comments

Comments
 (0)