Skip to content

Commit 380e634

Browse files
committed
test: adjust vite and cypress config
1 parent 3912258 commit 380e634

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cypress.config.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig } from 'cypress';
2+
import viteConfig from './vite.config.mts';
23

34
export default defineConfig({
45
component: {
@@ -7,6 +8,9 @@ export default defineConfig({
78
devServer: {
89
framework: 'react',
910
bundler: 'vite',
11+
viteConfig: {
12+
...viteConfig,
13+
},
1014
},
1115
specPattern: 'src/**/*.cy.{js,jsx,ts,tsx}',
1216
supportFile: 'cypress/support/component.jsx',

vite.config.mts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ export default defineConfig({
7474
'@openapi-contrib/openapi-schema-to-json-schema',
7575
'@stoplight/json-ref-resolver',
7676
'monaco-yaml/yaml.worker.js'
77+
],
78+
entries: [
79+
'cypress/support/component.jsx',
80+
'src/**/*.cy.{js,jsx,ts,tsx}'
7781
]
7882
},
7983
define: {

0 commit comments

Comments
 (0)