Skip to content

Commit

Permalink
chore: increase timeout for CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchcorn committed Dec 9, 2021
1 parent f677049 commit ad2d3c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
11 changes: 0 additions & 11 deletions src/__tests__/render-basics.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
const {resolve} = require('path')
const {render} = require('../pure')
const {getConfig, configure} = require("../config");

let originalConfig
beforeEach(() => {
originalConfig = getConfig()
configure({asyncUtilTimeout: 15000, renderAwaitTime: 300})
})

afterEach(() => {
configure(originalConfig)
})

test('Should expect error codes when intended', async () => {
const instance = await render('node', [resolve(__dirname, './execute-scripts/throw.js')])
Expand Down
12 changes: 11 additions & 1 deletion tests/setup-env.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import jestSnapshotSerializerAnsi from 'jest-snapshot-serializer-ansi'
import '../src/extend-expect';
import {configure, getConfig} from "../src/config";

expect.addSnapshotSerializer(jestSnapshotSerializerAnsi)
// add serializer for MutationRecord
Expand Down Expand Up @@ -46,5 +47,14 @@ afterAll(() => {
jest.restoreAllMocks()
})

jest.setTimeout(20000)

jest.setTimeout(7000)
let originalConfig
beforeAll(() => {
originalConfig = getConfig()
configure({asyncUtilTimeout: 15000, renderAwaitTime: 800})
})

afterAll(() => {
configure(originalConfig)
})

0 comments on commit ad2d3c9

Please sign in to comment.