Skip to content

Commit ba5b0bc

Browse files
committed
Add timeout to test-invalid-inputs
1 parent fb56df7 commit ba5b0bc

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

packages/create-next-stack/src/tests/e2e/tests/test-invalid-inputs.test.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { describe, expect, test } from "@jest/globals"
22
import { testArgsWithoutFinalChecks } from "../helpers/test-args"
3+
import { oneMinute } from "../helpers/timeout"
34

45
const invalidArgsArrays: Array<{ name: string; args: string[] }> = [
56
{
@@ -45,9 +46,13 @@ const invalidArgsArrays: Array<{ name: string; args: string[] }> = [
4546
]
4647

4748
describe("testInvalidInputs", () => {
48-
test.each(invalidArgsArrays)("$name", async ({ args }) => {
49-
await expect(async () => {
50-
await testArgsWithoutFinalChecks(args)
51-
}).rejects.toThrow()
52-
})
49+
test.each(invalidArgsArrays)(
50+
"$name",
51+
async ({ args }) => {
52+
await expect(async () => {
53+
await testArgsWithoutFinalChecks(args)
54+
}).rejects.toThrow()
55+
},
56+
oneMinute
57+
)
5358
})

0 commit comments

Comments
 (0)