@@ -11,7 +11,9 @@ describe('cli', () => {
11
11
it ( 'should load .js config file' , async ( ) => {
12
12
const argv = await cli ( [ '--configPath' , configFile ( 'js' ) , '--verbose' ] )
13
13
. argv ;
14
- expect ( argv . plugins [ 0 ] ) . toEqual ( eslintPlugin ( { config : '.eslintrc.json' } ) ) ;
14
+ expect ( argv . plugins [ 0 ] ) . toEqual (
15
+ await eslintPlugin ( { eslintrc : '.eslintrc.json' , patterns : '**/*.ts' } ) ,
16
+ ) ;
15
17
expect ( argv . plugins [ 1 ] ) . toEqual (
16
18
lighthousePlugin ( { config : '.lighthouserc.json' } ) ,
17
19
) ;
@@ -20,7 +22,9 @@ describe('cli', () => {
20
22
it ( 'should load .mjs config file' , async ( ) => {
21
23
const argv = await cli ( [ '--configPath' , configFile ( 'mjs' ) , '--verbose' ] )
22
24
. argv ;
23
- expect ( argv . plugins [ 0 ] ) . toEqual ( eslintPlugin ( { config : '.eslintrc.json' } ) ) ;
25
+ expect ( argv . plugins [ 0 ] ) . toEqual (
26
+ await eslintPlugin ( { eslintrc : '.eslintrc.json' , patterns : '**/*.ts' } ) ,
27
+ ) ;
24
28
expect ( argv . plugins [ 1 ] ) . toEqual (
25
29
lighthousePlugin ( { config : '.lighthouserc.json' } ) ,
26
30
) ;
@@ -29,7 +33,9 @@ describe('cli', () => {
29
33
it ( 'should load .ts config file' , async ( ) => {
30
34
const argv = await cli ( [ '--configPath' , configFile ( 'ts' ) , '--verbose' ] )
31
35
. argv ;
32
- expect ( argv . plugins [ 0 ] ) . toEqual ( eslintPlugin ( { config : '.eslintrc.json' } ) ) ;
36
+ expect ( argv . plugins [ 0 ] ) . toEqual (
37
+ await eslintPlugin ( { eslintrc : '.eslintrc.json' , patterns : '**/*.ts' } ) ,
38
+ ) ;
33
39
expect ( argv . plugins [ 1 ] ) . toEqual (
34
40
lighthousePlugin ( { config : '.lighthouserc.json' } ) ,
35
41
) ;
0 commit comments