Skip to content

Commit 61d51ea

Browse files
committed
Fix invalid input tests
1 parent 3a8bec8 commit 61d51ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ const invalidArgsArrays: Array<{ name: string; args: string[] }> = [
4545
]
4646

4747
describe("testInvalidInputs", () => {
48-
test.each(invalidArgsArrays)("$name", ({ args }) => {
49-
expect(async () => {
48+
test.each(invalidArgsArrays)("$name", async ({ args }) => {
49+
await expect(async () => {
5050
await testArgsWithoutFinalChecks(args)
51-
}).toThrow()
51+
}).rejects.toThrow()
5252
})
5353
})

0 commit comments

Comments
 (0)