@@ -56,22 +56,22 @@ it('correctly reports a file', () => {
56
56
expect ( testModule . location ) . toBeUndefined ( )
57
57
expect ( testModule . moduleId ) . toBe ( resolve ( root , './1_first.test.ts' ) )
58
58
expect ( testModule . project ) . toBe ( project )
59
- expect ( testModule . children . size ) . toBe ( 14 )
59
+ expect ( testModule . children . size ) . toBe ( 16 )
60
60
61
61
const tests = [ ...testModule . children . tests ( ) ]
62
62
expect ( tests ) . toHaveLength ( 11 )
63
63
const deepTests = [ ...testModule . children . allTests ( ) ]
64
- expect ( deepTests ) . toHaveLength ( 19 )
64
+ expect ( deepTests ) . toHaveLength ( 21 )
65
65
66
- expect ( [ ...testModule . children . allTests ( 'skipped' ) ] ) . toHaveLength ( 5 )
67
- expect ( [ ...testModule . children . allTests ( 'passed' ) ] ) . toHaveLength ( 9 )
68
- expect ( [ ...testModule . children . allTests ( 'failed' ) ] ) . toHaveLength ( 5 )
69
- expect ( [ ...testModule . children . allTests ( 'running' ) ] ) . toHaveLength ( 0 )
66
+ expect . soft ( [ ...testModule . children . allTests ( 'skipped' ) ] ) . toHaveLength ( 7 )
67
+ expect . soft ( [ ...testModule . children . allTests ( 'passed' ) ] ) . toHaveLength ( 9 )
68
+ expect . soft ( [ ...testModule . children . allTests ( 'failed' ) ] ) . toHaveLength ( 5 )
69
+ expect . soft ( [ ...testModule . children . allTests ( 'running' ) ] ) . toHaveLength ( 0 )
70
70
71
71
const suites = [ ...testModule . children . suites ( ) ]
72
- expect ( suites ) . toHaveLength ( 3 )
72
+ expect ( suites ) . toHaveLength ( 5 )
73
73
const deepSuites = [ ...testModule . children . allSuites ( ) ]
74
- expect ( deepSuites ) . toHaveLength ( 4 )
74
+ expect ( deepSuites ) . toHaveLength ( 6 )
75
75
76
76
const diagnostic = testModule . diagnostic ( )
77
77
expect ( diagnostic ) . toBeDefined ( )
@@ -187,6 +187,12 @@ it('correctly reports test assigned options', () => {
187
187
expect ( testOptionTodo . options . mode ) . toBe ( 'todo' )
188
188
const testModifierTodo = findTest ( testModule . children , 'todos a .modifier test' )
189
189
expect ( testModifierTodo . options . mode ) . toBe ( 'todo' )
190
+
191
+ const testInsideTodoDescribe = findTest ( testModule . children , 'test inside todo group' )
192
+ expect ( testInsideTodoDescribe . options . mode ) . toBe ( 'todo' )
193
+
194
+ const testInsideSkippedDescribe = findTest ( testModule . children , 'test inside skipped group' )
195
+ expect ( testInsideSkippedDescribe . options . mode ) . toBe ( 'skip' )
190
196
} )
191
197
192
198
it ( 'correctly reports retried tests' , ( ) => {
0 commit comments