Skip to content

Commit d0081f0

Browse files
authored
Merge pull request #6525 from Shopify/dlm-vitest-timeout
Adjust timeouts for long-running tests
2 parents c0d0f20 + b91d8a8 commit d0081f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/app/src/cli/services/function/build.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ beforeEach(async () => {
6969
})
7070

7171
describe('buildGraphqlTypes', () => {
72-
test('generate types', async () => {
72+
test('generate types', {timeout: 20000}, async () => {
7373
// Given
7474
const ourFunction = await testFunctionExtension({entryPath: 'src/index.js'})
7575

@@ -252,7 +252,7 @@ describe('runJavy', () => {
252252
})
253253

254254
describe('runWasmOpt', () => {
255-
test('runs wasm-opt on the module', async () => {
255+
test('runs wasm-opt on the module', {timeout: 20000}, async () => {
256256
// Given
257257
const ourFunction = await testFunctionExtension()
258258
const modulePath = ourFunction.outputPath
@@ -312,7 +312,7 @@ describe('runTrampoline', () => {
312312
expect(exec).not.toHaveBeenCalled()
313313
})
314314

315-
test('runs v1 trampoline on v1 module', async () => {
315+
test('runs v1 trampoline on v1 module', {timeout: 20000}, async () => {
316316
// Given
317317
const ourFunction = await testFunctionExtension()
318318
const modulePath = ourFunction.outputPath
@@ -331,7 +331,7 @@ describe('runTrampoline', () => {
331331
])
332332
})
333333

334-
test('runs v2 trampoline on v2 module', async () => {
334+
test('runs v2 trampoline on v2 module', {timeout: 20000}, async () => {
335335
// Given
336336
const ourFunction = await testFunctionExtension()
337337
const modulePath = ourFunction.outputPath
@@ -414,7 +414,7 @@ describe('ExportJavyBuilder', () => {
414414
})
415415

416416
describe('compile', () => {
417-
test('runs javy with wit', async () => {
417+
test('runs javy with wit', {timeout: 20000}, async () => {
418418
await inTemporaryDirectory(async (tmpDir) => {
419419
// Given
420420
const ourFunction = await testFunctionExtension()

0 commit comments

Comments
 (0)