forked from cypress-io/cypress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.ts
44 lines (36 loc) · 924 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
36
37
38
39
40
41
42
43
44
import { defineConfig } from 'cypress'
import webpackConfig from './webpack.config'
import WP from '../../npm/webpack-preprocessor'
export default defineConfig({
projectId: 'ypt4pf',
reporter: '../../node_modules/cypress-multi-reporters/index.js',
reporterOptions: {
configFile: '../../mocha-reporter-config.json',
},
retries: {
runMode: 2,
openMode: 0,
},
e2e: {
experimentalStudio: true,
baseUrl: 'http://localhost:5006',
setupNodeEvents (on, config) {
const express = require('express')
express().use(express.static('dist')).listen(5006)
on('file:preprocessor', WP({
webpackOptions: webpackConfig,
}))
return config
},
viewportHeight: 660,
viewportWidth: 400,
},
component: {
experimentalSingleTabRunMode: true,
devServer: {
framework: 'react',
bundler: 'webpack',
webpackConfig,
},
},
})