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