-
Notifications
You must be signed in to change notification settings - Fork 5
/
cypress.config.ts
35 lines (33 loc) · 957 Bytes
/
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
import { defineConfig } from 'cypress';
import customViteConfig from './vite.config';
export default defineConfig({
component: {
devServer: {
framework: 'react',
bundler: 'vite',
// optionally pass in vite config
viteConfig: customViteConfig,
// or a function - the result is merged with
// any `vite.config` file that is detected
// viteConfig: async () => {
// // ... do things ...
// const modifiedConfig = await injectCustomConfig(baseConfig);
// return modifiedConfig;
// },
},
},
e2e: {
baseUrl: 'https://metrostar.github.io/comet-starter/',
reporter: 'mochawesome',
reporterOptions: {
reportDir: 'cypress/reports',
overwrite: false,
html: false,
json: true,
},
// eslint-disable-next-line @typescript-eslint/no-unused-vars
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
});