Skip to content

Commit 6c71a0b

Browse files
committed
NO-JIRA: refactor: test with --runInBand, runs faster with less memory.
runInBand runs tests serially in a single node process, rather than starting parallel node processes. The tests themselves use very little CPU/memory compared to starting a node process, so this works out faster and uses much less memory.
1 parent 8a4e9f4 commit 6c71a0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"lint": "eslint ./src ./integration-tests --fix && stylelint \"src/**/*.css\" --allow-empty-input --fix",
1717
"lint:tsc": "tsc --noEmit",
1818
"test:e2e": "cd ./integration-tests && cypress open --env openshift=true",
19-
"test:unit": "jest --config jest.config.js",
19+
"test:unit": "jest --runInBand --config jest.config.js",
2020
"test:unit:watch": "jest --config jest.config.js --watch",
2121
"test:unit:coverage": "jest --config jest.config.js --coverage"
2222
},

0 commit comments

Comments
 (0)