Skip to content

Commit a328764

Browse files
committed
fix: rename the project, close #11
1 parent a7ef822 commit a328764

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# cypress-istanbul [![CircleCI](https://circleci.com/gh/cypress-io/cypress-istanbul.svg?style=svg)](https://circleci.com/gh/cypress-io/cypress-istanbul) [![renovate-app badge][renovate-badge]][renovate-app]
1+
# @cypress/code-coverage [![renovate-app badge][renovate-badge]][renovate-app] [![CircleCI](https://circleci.com/gh/cypress-io/cypress-istanbul.svg?style=svg)](https://circleci.com/gh/cypress-io/cypress-istanbul)
22

3-
> Saves the code coverage collected from instrumented code
3+
> Saves the code coverage collected during Cypress tests
44
55
## Install
66

77
```shell
8-
npm install -D cypress-istanbul
8+
npm install -D @cypress/code-coverage
99
```
1010

1111
and its peer dependencies
@@ -17,14 +17,14 @@ npm install -D nyc istanbul-lib-coverage cypress
1717
Add to your `cypress/support/index.js` file
1818

1919
```js
20-
import 'cypress-istanbul/support'
20+
import '@cypress/code-coverage/support'
2121
```
2222

2323
Register tasks in your `cypress/plugins/index.js` file
2424

2525
```js
2626
module.exports = (on, config) => {
27-
on('task', require('cypress-istanbul/task'))
27+
on('task', require('@cypress/code-coverage/task'))
2828
}
2929
```
3030

@@ -56,8 +56,8 @@ Put the following in `cypress/plugins/index.js` file to use `.babelrc` file
5656

5757
```js
5858
module.exports = (on, config) => {
59-
on('task', require('cypress-istanbul/task'))
60-
on('file:preprocessor', require('cypress-istanbul/use-babelrc'))
59+
on('task', require('@cypress/code-coverage/task'))
60+
on('file:preprocessor', require('@cypress/code-coverage/use-babelrc'))
6161
}
6262
```
6363

@@ -71,7 +71,7 @@ Now the code coverage from spec files will be combined with end-to-end coverage.
7171

7272
## Debugging
7373

74-
Run tests with `DEBUG=cypress-istanbul` environment variable to see log messages
74+
Run tests with `DEBUG=code-coverage` environment variable to see log messages
7575

7676
## License
7777

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "cypress-istanbul",
2+
"name": "@cypress/code-coverage",
33
"version": "0.0.0-development",
4-
"description": "Saves the code coverage collected from instrumented code",
4+
"description": "Saves the code coverage collected during Cypress tests",
55
"main": "index.js",
66
"scripts": {
77
"test": "cypress run",
@@ -18,7 +18,7 @@
1818
},
1919
"repository": {
2020
"type": "git",
21-
"url": "https://github.com/cypress-io/cypress-istanbul.git"
21+
"url": "https://github.com/cypress-io/code-coverage.git"
2222
},
2323
"keywords": [
2424
"cypress",
@@ -30,9 +30,9 @@
3030
"author": "Gleb Bahmutov <[email protected]>",
3131
"license": "MIT",
3232
"bugs": {
33-
"url": "https://github.com/cypress-io/cypress-istanbul/issues"
33+
"url": "https://github.com/cypress-io/code-coverage/issues"
3434
},
35-
"homepage": "https://github.com/cypress-io/cypress-istanbul#readme",
35+
"homepage": "https://github.com/cypress-io/code-coverage#readme",
3636
"files": [
3737
"*.js"
3838
],

task.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const istanbul = require('istanbul-lib-coverage')
22
const { join } = require('path')
33
const { existsSync, mkdirSync, readFileSync, writeFileSync } = require('fs')
44
const execa = require('execa')
5-
const debug = require('debug')('cypress-istanbul')
5+
const debug = require('debug')('code-coverage')
66

77
// these are standard folder and file names used by NYC tools
88
const outputFolder = '.nyc_output'

0 commit comments

Comments
 (0)