Use 10s timeout on Jest tests

This commit is contained in:
Michael Jackson 2019-08-01 10:21:57 -07:00
parent 88a4213caa
commit 90e78cc344
2 changed files with 6 additions and 1 deletions

View File

@ -6,5 +6,6 @@ module.exports = {
'getStats\\.js': '<rootDir>/modules/__mocks__/getStatsMock.js'
},
testMatch: ['**/__tests__/*-test.js'],
testURL: 'http://localhost/'
testURL: 'http://localhost/',
setupTestFrameworkScriptFile: './jest.setup.js'
};

4
jest.setup.js Normal file
View File

@ -0,0 +1,4 @@
// TODO: Mock out the registry so tests don't actually hit
// the real registry so they don't take so long. Then we can
// remove this.
jest.setTimeout(10000);