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

Commit 6ef8223

Browse files
committed
feat: use latest code coverage plugin
1 parent 2da74e8 commit 6ef8223

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

package-lock.json

Lines changed: 14 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"url": "https://github.com/bahmutov/cypress-react-unit-test.git"
6464
},
6565
"dependencies": {
66-
"@cypress/code-coverage": "2.0.3",
66+
"@cypress/code-coverage": "3.0.0",
6767
"@cypress/webpack-preprocessor": "4.1.3",
6868
"babel-plugin-istanbul": "6.0.0",
6969
"debug": "4.1.1",

plugins/cra-v3/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ const filePreprocessor = require('./file-preprocessor')
22

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

0 commit comments

Comments
 (0)