Files
cypress/npm/react/plugins/react-scripts/index.js
Dmitriy Kovalenko 9c642369fc chore(component-testing): Remove useless code & deps in @cypress/react and @cypress/vue (#15113)
* Remove useless code

* Add code-coverage to reacr devDependencies

* Remove react/support imports

* Remove some useless code from @cypress/react

* Cleanup vue

* Make it works :)

* Fix react errors

* Fix next.js react example

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-02-19 14:58:40 -06:00

10 lines
262 B
JavaScript

const filePreprocessor = require('../cra-v3/file-preprocessor')
module.exports = (on, config) => {
on('file:preprocessor', filePreprocessor(config))
// IMPORTANT to return the config object
// with the any changed environment variables
return config
}