@@ -61,7 +61,7 @@ test('does not exceed the timeout', () => {
61
61
expect ( status ) . toBe ( 0 ) ;
62
62
} ) ;
63
63
64
- test ( 'exceeds the command line timeout ' , ( ) => {
64
+ test ( 'exceeds the command line testTimeout ' , ( ) => {
65
65
writeFiles ( DIR , {
66
66
'__tests__/a-banana.js' : `
67
67
@@ -77,7 +77,7 @@ test('exceeds the command line timeout', () => {
77
77
const { stderr, status} = runJest ( DIR , [
78
78
'-w=1' ,
79
79
'--ci=false' ,
80
- '--timeout =200' ,
80
+ '--testTimeout =200' ,
81
81
] ) ;
82
82
const { rest, summary} = extractSummary ( stderr ) ;
83
83
expect ( rest ) . toMatch (
@@ -87,7 +87,7 @@ test('exceeds the command line timeout', () => {
87
87
expect ( status ) . toBe ( 1 ) ;
88
88
} ) ;
89
89
90
- test ( 'does not exceed the command line timeout ' , ( ) => {
90
+ test ( 'does not exceed the command line testTimeout ' , ( ) => {
91
91
writeFiles ( DIR , {
92
92
'__tests__/a-banana.js' : `
93
93
@@ -103,15 +103,15 @@ test('does not exceed the command line timeout', () => {
103
103
const { stderr, status} = runJest ( DIR , [
104
104
'-w=1' ,
105
105
'--ci=false' ,
106
- '--timeout =1000' ,
106
+ '--testTimeout =1000' ,
107
107
] ) ;
108
108
const { rest, summary} = extractSummary ( stderr ) ;
109
109
expect ( wrap ( rest ) ) . toMatchSnapshot ( ) ;
110
110
expect ( wrap ( summary ) ) . toMatchSnapshot ( ) ;
111
111
expect ( status ) . toBe ( 0 ) ;
112
112
} ) ;
113
113
114
- test ( 'if command line timeout=0 its mean no timeout ' , ( ) => {
114
+ test ( 'if command line timeout=0 its mean no testTimeout ' , ( ) => {
115
115
writeFiles ( DIR , {
116
116
'__tests__/a-banana.js' : `
117
117
@@ -124,7 +124,11 @@ test('if command line timeout=0 its mean no timeout', () => {
124
124
'package.json' : '{}' ,
125
125
} ) ;
126
126
127
- const { stderr, status} = runJest ( DIR , [ '-w=1' , '--ci=false' , '--timeout=0' ] ) ;
127
+ const { stderr, status} = runJest ( DIR , [
128
+ '-w=1' ,
129
+ '--ci=false' ,
130
+ '--testTimeout=0' ,
131
+ ] ) ;
128
132
const { rest, summary} = extractSummary ( stderr ) ;
129
133
expect ( wrap ( rest ) ) . toMatchSnapshot ( ) ;
130
134
expect ( wrap ( summary ) ) . toMatchSnapshot ( ) ;
0 commit comments