Skip to content

Commit 492df07

Browse files
fix: increase global test timeout to 90s for slow CI environments
1 parent 9231f0c commit 492df07

2 files changed

Lines changed: 7 additions & 15 deletions

File tree

src/commands/diff/diff.test.ts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@ describe('diff', () => {
1212
'./test-utils/fixtures/diff/e2e',
1313
'--no-api',
1414
])
15-
.it(
16-
'runs against a test file',
17-
(ctx) => {
18-
expect(ctx.stdout).toMatchSnapshot()
19-
},
20-
60000,
21-
)
15+
.it('runs against a test file', (ctx) => {
16+
expect(ctx.stdout).toMatchSnapshot()
17+
})
2218

2319
test.stdout()
2420
.command([
@@ -29,13 +25,9 @@ describe('diff', () => {
2925
'js=checkVariable\\(\\w*,\\s*([^,)]*)',
3026
'--no-api',
3127
])
32-
.it(
33-
'runs against a test file with a custom matcher',
34-
(ctx) => {
35-
expect(ctx.stdout).toMatchSnapshot()
36-
},
37-
60000,
38-
)
28+
.it('runs against a test file with a custom matcher', (ctx) => {
29+
expect(ctx.stdout).toMatchSnapshot()
30+
})
3931

4032
test.stdout()
4133
.command([

vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default defineConfig({
99
watch: false,
1010
passWithNoTests: false,
1111
reporters: 'default',
12-
testTimeout: 30000,
12+
testTimeout: 90000,
1313
hookTimeout: 30000,
1414
},
1515
})

0 commit comments

Comments
 (0)