1
- // Flags: --no-warnings --test-name-pattern=enabled --test-name-pattern=/pattern/i
1
+ // Flags: --no-warnings --test-name-pattern=enabled --test-name-pattern=yes --test-name-pattern= /pattern/i
2
2
'use strict' ;
3
3
const common = require ( '../../../common' ) ;
4
4
const {
@@ -18,7 +18,7 @@ it('top level it enabled', common.mustCall());
18
18
it ( 'top level it disabled' , common . mustNotCall ( ) ) ;
19
19
it . skip ( 'top level skipped it disabled' , common . mustNotCall ( ) ) ;
20
20
it . skip ( 'top level skipped it enabled' , common . mustNotCall ( ) ) ;
21
- describe ( 'top level describe disabled' , common . mustNotCall ( ) ) ;
21
+ describe ( 'top level describe never disabled' , common . mustCall ( ) ) ;
22
22
describe . skip ( 'top level skipped describe disabled' , common . mustNotCall ( ) ) ;
23
23
describe . skip ( 'top level skipped describe enabled' , common . mustNotCall ( ) ) ;
24
24
test ( 'top level runs because name includes PaTtErN' , common . mustCall ( ) ) ;
@@ -38,10 +38,30 @@ describe('top level describe enabled', () => {
38
38
afterEach ( common . mustCall ( 3 ) ) ;
39
39
after ( common . mustCall ( ) ) ;
40
40
41
- it ( 'nested it disabled' , common . mustNotCall ( ) ) ;
41
+ it ( 'nested it not disabled' , common . mustCall ( ) ) ;
42
42
it ( 'nested it enabled' , common . mustCall ( ) ) ;
43
- describe ( 'nested describe disabled' , common . mustNotCall ( ) ) ;
43
+ describe ( 'nested describe not disabled' , common . mustCall ( ) ) ;
44
44
describe ( 'nested describe enabled' , common . mustCall ( ( ) => {
45
45
it ( 'is enabled' , common . mustCall ( ) ) ;
46
46
} ) ) ;
47
47
} ) ;
48
+
49
+ describe ( 'yes' , function ( ) {
50
+ it ( 'no' , ( ) => { } ) ;
51
+ it ( 'yes' , ( ) => { } ) ;
52
+
53
+ describe ( 'maybe' , function ( ) {
54
+ it ( 'no' , ( ) => { } ) ;
55
+ it ( 'yes' , ( ) => { } ) ;
56
+ } ) ;
57
+ } ) ;
58
+
59
+ describe ( 'no' , function ( ) {
60
+ it ( 'no' , ( ) => { } ) ;
61
+ it ( 'yes' , ( ) => { } ) ;
62
+
63
+ describe ( 'maybe' , function ( ) {
64
+ it ( 'no' , ( ) => { } ) ;
65
+ it ( 'yes' , ( ) => { } ) ;
66
+ } ) ;
67
+ } ) ;
0 commit comments