refactor: use third argument of test for timeout

This commit is contained in:
Clark Du 2018-07-24 17:24:10 +01:00 committed by Clark Du
parent 6b8e9fa1be
commit 7365702bff

View File

@ -2,7 +2,6 @@ import { loadFixture, Nuxt, Builder } from './index'
export const buildFixture = function buildFixture(fixture) {
test(`Build ${fixture}`, async () => {
jest.setTimeout(120000)
const config = loadFixture(fixture, {
test: true,
build: {
@ -16,5 +15,5 @@ export const buildFixture = function buildFixture(fixture) {
// 2: BUILD_DONE
expect(builder._buildStatus).toBe(2)
expect(buildDone).toHaveBeenCalledTimes(1)
})
}, 120000)
}