Skip to content

Commit ad2d3c9

Browse files
committed
chore: increase timeout for CI tests
1 parent f677049 commit ad2d3c9

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

src/__tests__/render-basics.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
const {resolve} = require('path')
22
const {render} = require('../pure')
3-
const {getConfig, configure} = require("../config");
4-
5-
let originalConfig
6-
beforeEach(() => {
7-
originalConfig = getConfig()
8-
configure({asyncUtilTimeout: 15000, renderAwaitTime: 300})
9-
})
10-
11-
afterEach(() => {
12-
configure(originalConfig)
13-
})
143

154
test('Should expect error codes when intended', async () => {
165
const instance = await render('node', [resolve(__dirname, './execute-scripts/throw.js')])

tests/setup-env.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import jestSnapshotSerializerAnsi from 'jest-snapshot-serializer-ansi'
22
import '../src/extend-expect';
3+
import {configure, getConfig} from "../src/config";
34

45
expect.addSnapshotSerializer(jestSnapshotSerializerAnsi)
56
// add serializer for MutationRecord
@@ -46,5 +47,14 @@ afterAll(() => {
4647
jest.restoreAllMocks()
4748
})
4849

50+
jest.setTimeout(20000)
4951

50-
jest.setTimeout(7000)
52+
let originalConfig
53+
beforeAll(() => {
54+
originalConfig = getConfig()
55+
configure({asyncUtilTimeout: 15000, renderAwaitTime: 800})
56+
})
57+
58+
afterAll(() => {
59+
configure(originalConfig)
60+
})

0 commit comments

Comments
 (0)