Skip to content

Commit 751d2a8

Browse files
committed
Cut testing time of AVA itself by more than half
2m 35sec → 1m 14s Went with 4 cores as that seemed the most optimal. I've experienced that number being the most optimal for other things in the past too. Current 2m 35sec 2 cores 1m 37s 3 cores 1m 29s 4 cores 1m 14s 6 cores 1m 31s
1 parent b3eaf30 commit 751d2a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"node": ">=4"
4444
},
4545
"scripts": {
46-
"test": "xo && nyc tap --no-cov --timeout=150 test/*.js test/reporters/*.js",
47-
"test-win": "tap --no-cov --reporter=classic --timeout=150 test/*.js test/reporters/*.js",
46+
"test": "xo && nyc tap --no-cov --timeout=150 --jobs=4 test/*.js test/reporters/*.js",
47+
"test-win": "tap --no-cov --reporter=classic --timeout=150 --jobs=4 test/*.js test/reporters/*.js",
4848
"visual": "node test/visual/run-visual-tests.js",
4949
"prepublish": "npm run make-ts",
5050
"make-ts": "node types/make.js"

0 commit comments

Comments
 (0)