File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import codeCoverageTask from '@cypress/code-coverage/task' ;
22import { defineConfig } from 'cypress' ;
33
4- //todo: remove once officially supported by Cypress: https://github.com/cypress-io/cypress/issues/33078
5- const stripLegacyCypressOptimizeDepsPlugin = ( ) => ( {
6- name : 'cypress-vite8-compat' ,
7- config ( config ) {
8- if ( config ?. optimizeDeps ?. esbuildOptions ) {
9- delete config . optimizeDeps . esbuildOptions ;
10- }
11- } ,
12- } ) ;
13-
144export default defineConfig ( {
155 env : {
166 codeCoverage : {
@@ -37,12 +27,6 @@ export default defineConfig({
3727 devServer : {
3828 framework : 'react' ,
3929 bundler : 'vite' ,
40- viteConfig : {
41- // passing `viteConfig` as an object makes Cypress set `configFile: false` internally
42- configFile : 'vite.config.ts' ,
43- // plugins from both configs are merged by Vite's `mergeConfig`
44- plugins : [ stripLegacyCypressOptimizeDepsPlugin ( ) ] ,
45- } ,
4630 } ,
4731 experimentalRunAllSpecs : true ,
4832 excludeSpecPattern : [ '**/e2e/**' , ...( process . env . CI ? [ '**/SelectDialog/**' ] : [ ] ) ] ,
Original file line number Diff line number Diff line change 11import { defineConfig } from 'cypress' ;
22
3- //todo: remove once officially supported by Cypress: https://github.com/cypress-io/cypress/issues/33078
4- const stripLegacyCypressOptimizeDepsPlugin = ( ) => ( {
5- name : 'cypress-vite8-compat' ,
6- config ( config ) {
7- if ( config ?. optimizeDeps ?. esbuildOptions ) {
8- delete config . optimizeDeps . esbuildOptions ;
9- }
10- } ,
11- } ) ;
12-
133export default defineConfig ( {
144 includeShadowDom : true ,
155 viewportWidth : 1920 ,
@@ -18,12 +8,6 @@ export default defineConfig({
188 devServer : {
199 framework : 'react' ,
2010 bundler : 'vite' ,
21- viteConfig : {
22- // passing `viteConfig` as an object makes Cypress set `configFile: false` internally
23- configFile : 'vite.config.ts' ,
24- // plugins from both configs are merged by Vite's `mergeConfig`
25- plugins : [ stripLegacyCypressOptimizeDepsPlugin ( ) ] ,
26- } ,
2711 } ,
2812 } ,
2913
Original file line number Diff line number Diff line change 11import { defineConfig } from 'cypress' ;
22
3- //todo: remove once officially supported by Cypress: https://github.com/cypress-io/cypress/issues/33078
4- const stripLegacyCypressOptimizeDepsPlugin = ( ) => ( {
5- name : 'cypress-vite8-compat' ,
6- config ( config ) {
7- if ( config ?. optimizeDeps ?. esbuildOptions ) {
8- delete config . optimizeDeps . esbuildOptions ;
9- }
10- } ,
11- } ) ;
12-
133export default defineConfig ( {
144 component : {
155 devServer : {
166 framework : 'react' ,
177 bundler : 'vite' ,
18- viteConfig : {
19- // passing `viteConfig` as an object makes Cypress set `configFile: false` internally
20- configFile : 'vite.config.ts' ,
21- // plugins from both configs are merged by Vite's `mergeConfig`
22- plugins : [ stripLegacyCypressOptimizeDepsPlugin ( ) ] ,
23- } ,
248 } ,
259 } ,
2610 allowCypressEnv : false ,
You can’t perform that action at this time.
0 commit comments