forked from cypress-io/cypress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.ts
49 lines (46 loc) · 1.3 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
41
42
43
44
45
46
47
48
49
import { defineConfig } from 'cypress'
import { devServer as cypressWebpackDevServer } from '@cypress/webpack-dev-server'
export default defineConfig({
projectId: 'ypt4pf',
experimentalStudio: true,
experimentalMemoryManagement: true,
experimentalWebKitSupport: true,
hosts: {
'foobar.com': '127.0.0.1',
'*.foobar.com': '127.0.0.1',
'barbaz.com': '127.0.0.1',
'*.barbaz.com': '127.0.0.1',
'*.idp.com': '127.0.0.1',
'localalias': '127.0.0.1',
},
reporter: '../../node_modules/cypress-multi-reporters/index.js',
reporterOptions: {
configFile: '../../mocha-reporter-config.json',
},
e2e: {
experimentalOriginDependencies: true,
experimentalModifyObstructiveThirdPartyCode: true,
setupNodeEvents: (on, config) => {
on('task', {
log (message) {
// eslint-disable-next-line no-console
console.log(message)
return null
},
})
return require('./cypress/plugins')(on, config)
},
baseUrl: 'http://localhost:3500',
},
component: {
experimentalSingleTabRunMode: true,
specPattern: 'cypress/component/**/*.cy.js',
supportFile: false,
devServer: (devServerOptions) => {
return cypressWebpackDevServer({
...devServerOptions,
webpackConfig: {},
})
},
},
})