mirror of
https://github.com/facebook/sapling.git
synced 2024-10-04 13:57:13 +03:00
Bump test timeout in CI
Summary: increase the timeout for jest tests in CI. We previously increased the `waitFor` timeout, but we shoudl also bump the general test timeout too. Reviewed By: quark-zju Differential Revision: D56954680 fbshipit-source-id: 65145914071d4452f0487e486e593ebf13f75aff
This commit is contained in:
parent
33b8c64e63
commit
202490db3c
@ -5,6 +5,8 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
const IS_CI = !!process.env.SANDCASTLE || !!process.env.GITHUB_ACTIONS;
|
||||
|
||||
/* global module */
|
||||
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
||||
module.exports = {
|
||||
@ -12,6 +14,7 @@ module.exports = {
|
||||
testEnvironment: 'jsdom',
|
||||
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}', '!src/**/*.d.ts'],
|
||||
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
|
||||
testTimeout: IS_CI ? 15 * 1000 : 5 * 1000,
|
||||
moduleNameMapper: {
|
||||
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
|
||||
'<rootDir>/src/__mocks__/fileMock.js',
|
||||
|
Loading…
Reference in New Issue
Block a user