-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.ts
40 lines (39 loc) · 1.03 KB
/
cypress.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { defineConfig } from 'cypress'
import vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'url'
export default defineConfig({
component: {
devServer: {
framework: 'vue',
bundler: 'vite',
viteConfig: {
define: {
'process.env.NODE_ENV': JSON.stringify('production'),
'process.env.production': JSON.stringify('production'),
'process.env.development': JSON.stringify('development'),
},
plugins: [
vue(),
],
resolve: {
alias: {
// Alias to the /src directory
'@/': fileURLToPath(new URL('./src/', import.meta.url)),
},
},
},
},
viewportHeight: 800,
viewportWidth: 600,
specPattern: 'src/**/*.spec.ts',
supportFile: 'cypress/support/index.ts',
},
includeShadowDom: true,
fixturesFolder: 'cypress/fixtures',
screenshotsFolder: 'cypress/screenshots',
videosFolder: 'cypress/videos',
retries: {
runMode: 1,
},
trashAssetsBeforeRuns: false,
})