@@ -7,7 +7,7 @@ describe('renderEslint', () => {
77 needsVitest : false ,
88 needsCypress : false ,
99 needsCypressCT : false ,
10- needsPlaywright : false
10+ needsPlaywright : false ,
1111 } )
1212 expect ( additionalConfigs ) . toStrictEqual ( [ ] )
1313 } )
@@ -17,7 +17,7 @@ describe('renderEslint', () => {
1717 needsVitest : true ,
1818 needsCypress : false ,
1919 needsCypressCT : false ,
20- needsPlaywright : false
20+ needsPlaywright : false ,
2121 } )
2222 expect ( additionalConfigs ) . toHaveLength ( 1 )
2323 const [ additionalVitestConfig ] = additionalConfigs
@@ -34,19 +34,19 @@ describe('renderEslint', () => {
3434 needsVitest : false ,
3535 needsCypress : true ,
3636 needsCypressCT : false ,
37- needsPlaywright : false
37+ needsPlaywright : false ,
3838 } )
3939 expect ( additionalConfigs ) . toHaveLength ( 1 )
4040 const [ additionalCypressConfig ] = additionalConfigs
4141 expect ( additionalCypressConfig . devDependencies [ 'eslint-plugin-cypress' ] ) . not . toBeUndefined ( )
4242 expect ( additionalCypressConfig . afterVuePlugin ) . toHaveLength ( 1 )
4343 const [ additionalCypressPlugin ] = additionalCypressConfig . afterVuePlugin !
4444 expect ( additionalCypressPlugin . importer ) . toBe (
45- "import pluginCypress from 'eslint-plugin-cypress/flat'"
45+ "import pluginCypress from 'eslint-plugin-cypress/flat'" ,
4646 )
4747 expect ( additionalCypressPlugin . content ) . toContain ( '...pluginCypress.configs.recommended' )
4848 expect ( additionalCypressPlugin . content ) . toContain (
49- "'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'"
49+ "'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'" ,
5050 )
5151 expect ( additionalCypressPlugin . content ) . toContain ( "'cypress/support/**/*.{js,ts,jsx,tsx}'" )
5252 } )
@@ -56,20 +56,20 @@ describe('renderEslint', () => {
5656 needsVitest : false ,
5757 needsCypress : true ,
5858 needsCypressCT : true ,
59- needsPlaywright : false
59+ needsPlaywright : false ,
6060 } )
6161 expect ( additionalConfigs ) . toHaveLength ( 1 )
6262 const [ additionalCypressConfig ] = additionalConfigs
6363 expect ( additionalCypressConfig . devDependencies [ 'eslint-plugin-cypress' ] ) . not . toBeUndefined ( )
6464 expect ( additionalCypressConfig . afterVuePlugin ) . toHaveLength ( 1 )
6565 const [ additionalCypressPlugin ] = additionalCypressConfig . afterVuePlugin !
6666 expect ( additionalCypressPlugin . importer ) . toBe (
67- "import pluginCypress from 'eslint-plugin-cypress/flat'"
67+ "import pluginCypress from 'eslint-plugin-cypress/flat'" ,
6868 )
6969 expect ( additionalCypressPlugin . content ) . toContain ( '...pluginCypress.configs.recommended' )
7070 expect ( additionalCypressPlugin . content ) . toContain ( "'**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}'" )
7171 expect ( additionalCypressPlugin . content ) . toContain (
72- "'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'"
72+ "'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'" ,
7373 )
7474 expect ( additionalCypressPlugin . content ) . toContain ( "'cypress/support/**/*.{js,ts,jsx,tsx}'" )
7575 } )
@@ -79,23 +79,23 @@ describe('renderEslint', () => {
7979 needsVitest : false ,
8080 needsCypress : false ,
8181 needsCypressCT : false ,
82- needsPlaywright : true
82+ needsPlaywright : true ,
8383 } )
8484 expect ( additionalConfigs ) . toHaveLength ( 1 )
8585 const [ additionalPlaywrightConfig ] = additionalConfigs
8686 expect (
87- additionalPlaywrightConfig . devDependencies [ 'eslint-plugin-playwright' ]
87+ additionalPlaywrightConfig . devDependencies [ 'eslint-plugin-playwright' ] ,
8888 ) . not . toBeUndefined ( )
8989 expect ( additionalPlaywrightConfig . afterVuePlugin ) . toHaveLength ( 1 )
9090 const [ additionalPlaywrightPlugin ] = additionalPlaywrightConfig . afterVuePlugin !
9191 expect ( additionalPlaywrightPlugin . importer ) . toBe (
92- "import pluginPlaywright from 'eslint-plugin-playwright'"
92+ "import pluginPlaywright from 'eslint-plugin-playwright'" ,
9393 )
9494 expect ( additionalPlaywrightPlugin . content ) . toContain (
95- "...pluginPlaywright.configs['flat/recommended']"
95+ "...pluginPlaywright.configs['flat/recommended']" ,
9696 )
9797 expect ( additionalPlaywrightPlugin . content ) . toContain (
98- "files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}']"
98+ "files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}']" ,
9999 )
100100 } )
101101} )
0 commit comments