mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-30 03:51:21 -05:00
f920dcbd0d
* chore: enforce 'no-implicit-dependencies' on tslint * downgrade chalk version for errors package
53 lines
1.4 KiB
TypeScript
53 lines
1.4 KiB
TypeScript
// tslint:disable-next-line: no-implicit-dependencies - cypress
|
|
import { defineConfig } from 'cypress'
|
|
import { devServer as cypressWebpackDevServer } from '@cypress/webpack-dev-server'
|
|
|
|
export const baseConfig: Cypress.ConfigOptions = {
|
|
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: {},
|
|
})
|
|
},
|
|
},
|
|
}
|
|
|
|
export default defineConfig(baseConfig)
|