Skip to content

Commit

Permalink
Update config for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
estrada9166 committed Nov 19, 2021
1 parent c2ba257 commit 19ff4e9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ module.exports = {
component: {
testFiles: '**/*cy-spec.{js,jsx,ts,tsx}',
componentFolder: 'src',
devServer (cypressConfig, devServerConfig) {
devServer (cypressConfig) {
const { startDevServer } = require('@cypress/webpack-dev-server')

return startDevServer({ options: cypressConfig, ...devServerConfig })
},
devServerConfig: {
webpackConfig: {
output: {
publicPath: '/',
},
},
return startDevServer({
options: cypressConfig,
webpackConfig: {
output: {
publicPath: '/',
},
} })
},
},
}
17 changes: 8 additions & 9 deletions system-tests/projects/unify-onboarding/cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
module.exports = {
'component': {
devServer (cypressConfig, devServerConfig) {
devServer (cypressConfig) {
const { startDevServer } = require('@cypress/webpack-dev-server')

return startDevServer({ options: cypressConfig, ...devServerConfig })
},
devServerConfig: {
webpackConfig: {
output: {
publicPath: '/',
},
},
return startDevServer({
options: cypressConfig,
webpackConfig: {
output: {
publicPath: '/',
},
} })
},
},
}

0 comments on commit 19ff4e9

Please sign in to comment.