devtools,package.json: switch to jest runner to jest-circus

This change gives us a slight improvement in the
speed of our tests and results in better error
messages when things break. Jest-circus is the default
test runner in the next major release of jest but
we can take advantage of it today.

Change-Id: I454449b18e1644a8d02faf276c2905b2a5879377
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/298429
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
This commit is contained in:
Jamal Carvalho 2021-03-03 17:00:01 -05:00
Родитель 47a1c56065
Коммит b7c9e4f061
3 изменённых файлов: 35 добавлений и 0 удалений

Просмотреть файл

@ -7,6 +7,7 @@ let config = {
}, },
}, },
moduleFileExtensions: ['ts', 'js'], moduleFileExtensions: ['ts', 'js'],
testRunner: 'jest-circus/runner',
}; };
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef

33
package-lock.json сгенерированный
Просмотреть файл

@ -1757,6 +1757,11 @@
"mimic-response": "^1.0.0" "mimic-response": "^1.0.0"
} }
}, },
"dedent": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz",
"integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw="
},
"deep-extend": { "deep-extend": {
"version": "0.6.0", "version": "0.6.0",
"resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
@ -3499,6 +3504,34 @@
} }
} }
}, },
"jest-circus": {
"version": "26.6.3",
"resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-26.6.3.tgz",
"integrity": "sha512-ACrpWZGcQMpbv13XbzRzpytEJlilP/Su0JtNCi5r/xLpOUhnaIJr8leYYpLEMgPFURZISEHrnnpmB54Q/UziPw==",
"requires": {
"@babel/traverse": "^7.1.0",
"@jest/environment": "^26.6.2",
"@jest/test-result": "^26.6.2",
"@jest/types": "^26.6.2",
"@types/babel__traverse": "^7.0.4",
"@types/node": "*",
"chalk": "^4.0.0",
"co": "^4.6.0",
"dedent": "^0.7.0",
"expect": "^26.6.2",
"is-generator-fn": "^2.0.0",
"jest-each": "^26.6.2",
"jest-matcher-utils": "^26.6.2",
"jest-message-util": "^26.6.2",
"jest-runner": "^26.6.3",
"jest-runtime": "^26.6.3",
"jest-snapshot": "^26.6.2",
"jest-util": "^26.6.2",
"pretty-format": "^26.6.2",
"stack-utils": "^2.0.2",
"throat": "^5.0.0"
}
},
"jest-config": { "jest-config": {
"version": "26.6.3", "version": "26.6.3",
"resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz",

Просмотреть файл

@ -29,6 +29,7 @@
"eslint-plugin-jest": "24.1.3", "eslint-plugin-jest": "24.1.3",
"eslint-plugin-prettier": "3.3.0", "eslint-plugin-prettier": "3.3.0",
"jest": "26.6.3", "jest": "26.6.3",
"jest-circus": "^26.6.3",
"jest-image-snapshot": "4.2.0", "jest-image-snapshot": "4.2.0",
"js-green-licenses": "2.0.1", "js-green-licenses": "2.0.1",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",