File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
packages/create-next-stack/src/tests/e2e/tests Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 11import { describe , expect , test } from "@jest/globals"
22import { testArgsWithoutFinalChecks } from "../helpers/test-args"
3+ import { oneMinute } from "../helpers/timeout"
34
45const invalidArgsArrays : Array < { name : string ; args : string [ ] } > = [
56 {
@@ -45,9 +46,13 @@ const invalidArgsArrays: Array<{ name: string; args: string[] }> = [
4546]
4647
4748describe ( "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} )
You can’t perform that action at this time.
0 commit comments