Files
cypress/npm/react/examples/tailwind/cypress.config.js
T
Alejandro Estrada bb8251b752 feat: Use plugins on config files (#18798)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-11-16 14:45:26 -05:00

25 lines
620 B
JavaScript

module.exports = {
'video': false,
'fixturesFolder': false,
'testFiles': '**/*cy-spec.js',
'viewportWidth': 500,
'viewportHeight': 500,
'componentFolder': 'src',
'env': {
'coverage': true,
},
config: {
setupNodeEvents (on, config) {
// load file devServer that comes with this plugin
// https://github.com/bahmutov/cypress-react-unit-test#install
const devServer = require('@cypress/react/plugins/react-scripts')
devServer(on, config)
// IMPORTANT to return the config object
// with the any changed environment variables
return config
},
},
}