@@ -7,7 +7,7 @@ describe('renderEslint', () => {
7
7
needsVitest : false ,
8
8
needsCypress : false ,
9
9
needsCypressCT : false ,
10
- needsPlaywright : false
10
+ needsPlaywright : false ,
11
11
} )
12
12
expect ( additionalConfigs ) . toStrictEqual ( [ ] )
13
13
} )
@@ -17,7 +17,7 @@ describe('renderEslint', () => {
17
17
needsVitest : true ,
18
18
needsCypress : false ,
19
19
needsCypressCT : false ,
20
- needsPlaywright : false
20
+ needsPlaywright : false ,
21
21
} )
22
22
expect ( additionalConfigs ) . toHaveLength ( 1 )
23
23
const [ additionalVitestConfig ] = additionalConfigs
@@ -34,19 +34,19 @@ describe('renderEslint', () => {
34
34
needsVitest : false ,
35
35
needsCypress : true ,
36
36
needsCypressCT : false ,
37
- needsPlaywright : false
37
+ needsPlaywright : false ,
38
38
} )
39
39
expect ( additionalConfigs ) . toHaveLength ( 1 )
40
40
const [ additionalCypressConfig ] = additionalConfigs
41
41
expect ( additionalCypressConfig . devDependencies [ 'eslint-plugin-cypress' ] ) . not . toBeUndefined ( )
42
42
expect ( additionalCypressConfig . afterVuePlugin ) . toHaveLength ( 1 )
43
43
const [ additionalCypressPlugin ] = additionalCypressConfig . afterVuePlugin !
44
44
expect ( additionalCypressPlugin . importer ) . toBe (
45
- "import pluginCypress from 'eslint-plugin-cypress/flat'"
45
+ "import pluginCypress from 'eslint-plugin-cypress/flat'" ,
46
46
)
47
47
expect ( additionalCypressPlugin . content ) . toContain ( '...pluginCypress.configs.recommended' )
48
48
expect ( additionalCypressPlugin . content ) . toContain (
49
- "'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'"
49
+ "'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'" ,
50
50
)
51
51
expect ( additionalCypressPlugin . content ) . toContain ( "'cypress/support/**/*.{js,ts,jsx,tsx}'" )
52
52
} )
@@ -56,20 +56,20 @@ describe('renderEslint', () => {
56
56
needsVitest : false ,
57
57
needsCypress : true ,
58
58
needsCypressCT : true ,
59
- needsPlaywright : false
59
+ needsPlaywright : false ,
60
60
} )
61
61
expect ( additionalConfigs ) . toHaveLength ( 1 )
62
62
const [ additionalCypressConfig ] = additionalConfigs
63
63
expect ( additionalCypressConfig . devDependencies [ 'eslint-plugin-cypress' ] ) . not . toBeUndefined ( )
64
64
expect ( additionalCypressConfig . afterVuePlugin ) . toHaveLength ( 1 )
65
65
const [ additionalCypressPlugin ] = additionalCypressConfig . afterVuePlugin !
66
66
expect ( additionalCypressPlugin . importer ) . toBe (
67
- "import pluginCypress from 'eslint-plugin-cypress/flat'"
67
+ "import pluginCypress from 'eslint-plugin-cypress/flat'" ,
68
68
)
69
69
expect ( additionalCypressPlugin . content ) . toContain ( '...pluginCypress.configs.recommended' )
70
70
expect ( additionalCypressPlugin . content ) . toContain ( "'**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}'" )
71
71
expect ( additionalCypressPlugin . content ) . toContain (
72
- "'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'"
72
+ "'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'" ,
73
73
)
74
74
expect ( additionalCypressPlugin . content ) . toContain ( "'cypress/support/**/*.{js,ts,jsx,tsx}'" )
75
75
} )
@@ -79,23 +79,23 @@ describe('renderEslint', () => {
79
79
needsVitest : false ,
80
80
needsCypress : false ,
81
81
needsCypressCT : false ,
82
- needsPlaywright : true
82
+ needsPlaywright : true ,
83
83
} )
84
84
expect ( additionalConfigs ) . toHaveLength ( 1 )
85
85
const [ additionalPlaywrightConfig ] = additionalConfigs
86
86
expect (
87
- additionalPlaywrightConfig . devDependencies [ 'eslint-plugin-playwright' ]
87
+ additionalPlaywrightConfig . devDependencies [ 'eslint-plugin-playwright' ] ,
88
88
) . not . toBeUndefined ( )
89
89
expect ( additionalPlaywrightConfig . afterVuePlugin ) . toHaveLength ( 1 )
90
90
const [ additionalPlaywrightPlugin ] = additionalPlaywrightConfig . afterVuePlugin !
91
91
expect ( additionalPlaywrightPlugin . importer ) . toBe (
92
- "import pluginPlaywright from 'eslint-plugin-playwright'"
92
+ "import pluginPlaywright from 'eslint-plugin-playwright'" ,
93
93
)
94
94
expect ( additionalPlaywrightPlugin . content ) . toContain (
95
- "...pluginPlaywright.configs['flat/recommended']"
95
+ "...pluginPlaywright.configs['flat/recommended']" ,
96
96
)
97
97
expect ( additionalPlaywrightPlugin . content ) . toContain (
98
- "files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}']"
98
+ "files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}']" ,
99
99
)
100
100
} )
101
101
} )
0 commit comments