File tree 2 files changed +13
-6
lines changed
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,14 @@ export function getTests(suite: Arrayable<Task>): (Test | Custom)[] {
14
14
}
15
15
else {
16
16
for ( const task of s . tasks ) {
17
- if ( isAtomTest ( task ) )
17
+ if ( isAtomTest ( task ) ) {
18
18
tests . push ( task )
19
- else
20
- tests . push ( ...getTests ( task ) )
19
+ }
20
+ else {
21
+ const taskTests = getTests ( task )
22
+ for ( const test of taskTests )
23
+ tests . push ( test )
24
+ }
21
25
}
22
26
}
23
27
}
Original file line number Diff line number Diff line change @@ -68,10 +68,13 @@ function getTests(suite: Arrayable<Task>): (Test | Custom)[] {
68
68
}
69
69
else {
70
70
for ( const task of s . tasks ) {
71
- if ( isAtomTest ( task ) )
71
+ if ( isAtomTest ( task ) ) {
72
72
tests . push ( task )
73
- else
74
- tests . push ( ...getTests ( task ) )
73
+ }
74
+ else {
75
+ const taskTests = getTests ( task )
76
+ for ( const test of taskTests ) tests . push ( test )
77
+ }
75
78
}
76
79
}
77
80
}
You can’t perform that action at this time.
0 commit comments