Files
cypress/packages/driver/cypress.config.ts
T
Jennifer Shehane f920dcbd0d chore: enforce 'no-implicit-dependencies' on tslint (#31022)
* chore: enforce 'no-implicit-dependencies' on tslint

* downgrade chalk version for errors package
2025-02-06 17:33:05 -05:00

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)