Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
fix: the require format for react scripts task
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Apr 6, 2020
1 parent 6ef8223 commit 1b49d25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/cra-v3/index.js
@@ -1,8 +1,8 @@
const filePreprocessor = require('./file-preprocessor')

module.exports = (on, config) => {
require('@cypress/code-coverage/task')(on, config)
on('file:preprocessor', filePreprocessor(config))
on('task', require('@cypress/code-coverage/task')(on, config))
// IMPORTANT to return the config object
// with the any changed environment variables
return config
Expand Down

0 comments on commit 1b49d25

Please sign in to comment.