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

Commit

Permalink
feat: use latest code coverage plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Apr 6, 2020
1 parent 2da74e8 commit 6ef8223
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
27 changes: 14 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"url": "https://github.com/bahmutov/cypress-react-unit-test.git"
},
"dependencies": {
"@cypress/code-coverage": "2.0.3",
"@cypress/code-coverage": "3.0.0",
"@cypress/webpack-preprocessor": "4.1.3",
"babel-plugin-istanbul": "6.0.0",
"debug": "4.1.1",
Expand Down
5 changes: 4 additions & 1 deletion plugins/cra-v3/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ const filePreprocessor = require('./file-preprocessor')

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

0 comments on commit 6ef8223

Please sign in to comment.