From edca40cbd02367cf866ecfa8725d46183da5abd1 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 25 May 2019 05:17:15 +0000 Subject: [PATCH 1/3] chore(deps): update dependency @babel/core to v7.4.5 --- package-lock.json | 40 ++++++++++++++++++++++++---------------- package.json | 2 +- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index 368dc08a2..c7575ba15 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,17 +13,17 @@ } }, "@babel/core": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.4.4.tgz", - "integrity": "sha512-lQgGX3FPRgbz2SKmhMtYgJvVzGZrmjaF4apZ2bLwofAKiSjxU0drPh4S/VasyYXwaTs+A1gvQ45BN8SQJzHsQQ==", + "version": "7.4.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.4.5.tgz", + "integrity": "sha512-OvjIh6aqXtlsA8ujtGKfC7LYWksYSX8yQcM8Ay3LuvVeQ63lcOKgoZWVqcpFwkd29aYU9rVx7jxhfhiEDV9MZA==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "@babel/generator": "^7.4.4", "@babel/helpers": "^7.4.4", - "@babel/parser": "^7.4.4", + "@babel/parser": "^7.4.5", "@babel/template": "^7.4.4", - "@babel/traverse": "^7.4.4", + "@babel/traverse": "^7.4.5", "@babel/types": "^7.4.4", "convert-source-map": "^1.1.0", "debug": "^4.1.0", @@ -34,13 +34,27 @@ "source-map": "^0.5.0" }, "dependencies": { - "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "@babel/parser": { + "version": "7.4.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.4.5.tgz", + "integrity": "sha512-9mUqkL1FF5T7f0WDFfAoDdiMVPWsdD1gZYzSnaXsxUCUqzuch/8of9G3VUSNiZmMBoRxT3neyVsqeiL/ZPcjew==", + "dev": true + }, + "@babel/traverse": { + "version": "7.4.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.4.5.tgz", + "integrity": "sha512-Vc+qjynwkjRmIFGxy0KYoPj4FdVDxLej89kMHFsWScq999uX+pwcX4v9mWRjW0KcAYTPAuVQl2LKP1wEVLsp+A==", "dev": true, "requires": { - "ms": "^2.1.1" + "@babel/code-frame": "^7.0.0", + "@babel/generator": "^7.4.4", + "@babel/helper-function-name": "^7.1.0", + "@babel/helper-split-export-declaration": "^7.4.4", + "@babel/parser": "^7.4.5", + "@babel/types": "^7.4.4", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.11" } }, "json5": { @@ -51,12 +65,6 @@ "requires": { "minimist": "^1.2.0" } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true } } }, diff --git a/package.json b/package.json index 18c0f9ba8..4d50f8601 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "debug": "4.1.1" }, "devDependencies": { - "@babel/core": "7.4.4", + "@babel/core": "7.4.5", "babel-plugin-istanbul": "5.1.4", "cypress": "3.3.1", "istanbul-lib-coverage": "2.0.5", From a7ef82251c341c47133ea1f86a770538c5d83059 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 25 May 2019 05:17:46 +0000 Subject: [PATCH 2/3] chore(deps): update dependency start-server-and-test to v1.9.1 --- package-lock.json | 29 +++++++---------------------- package.json | 2 +- 2 files changed, 8 insertions(+), 23 deletions(-) diff --git a/package-lock.json b/package-lock.json index c7575ba15..51a879513 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13407,12 +13407,12 @@ "dev": true }, "start-server-and-test": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.9.0.tgz", - "integrity": "sha512-aXOP5zL1CZnBX/N7ssnqQvYzoXMaG1H4rcGSZjqdi6Jth61xYUe+S/DQlE8PKFLoXnafceA61kdrv8xjG6mqyA==", + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.9.1.tgz", + "integrity": "sha512-vRtUxxW34Li+EvemuWtgASyR2KBE+DPoEJ/l5REe+cKxm31jadGm1PSDVBronqQVsvhncRGm4iZc53pFH+FNEA==", "dev": true, "requires": { - "bluebird": "3.5.4", + "bluebird": "3.5.5", "check-more-types": "2.24.0", "debug": "4.1.1", "execa": "0.11.0", @@ -13422,20 +13422,11 @@ }, "dependencies": { "bluebird": { - "version": "3.5.4", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.4.tgz", - "integrity": "sha512-FG+nFEZChJrbQ9tIccIfZJBz3J7mLrAhxakAbnrJWn8d7aKOC+LWifa0G+p4ZqKp4y13T7juYvdhq9NzKdsrjw==", + "version": "3.5.5", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.5.tgz", + "integrity": "sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w==", "dev": true }, - "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, "execa": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/execa/-/execa-0.11.0.tgz", @@ -13459,12 +13450,6 @@ "requires": { "pump": "^3.0.0" } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true } } }, diff --git a/package.json b/package.json index 4d50f8601..2bd07ab3a 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "lodash": "4.17.11", "nyc": "14.1.1", "parcel-bundler": "1.12.3", - "start-server-and-test": "1.9.0", + "start-server-and-test": "1.9.1", "semantic-release": "15.13.12" } } From a328764a0880dc49b2abc7eac4909ae1910241e3 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Mon, 3 Jun 2019 21:09:04 -0400 Subject: [PATCH 3/3] fix: rename the project, close #11 --- README.md | 16 ++++++++-------- package-lock.json | 2 +- package.json | 10 +++++----- task.js | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 5cfab10fc..1bd0b2612 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# 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] +# @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) -> Saves the code coverage collected from instrumented code +> Saves the code coverage collected during Cypress tests ## Install ```shell -npm install -D cypress-istanbul +npm install -D @cypress/code-coverage ``` and its peer dependencies @@ -17,14 +17,14 @@ npm install -D nyc istanbul-lib-coverage cypress Add to your `cypress/support/index.js` file ```js -import 'cypress-istanbul/support' +import '@cypress/code-coverage/support' ``` Register tasks in your `cypress/plugins/index.js` file ```js module.exports = (on, config) => { - on('task', require('cypress-istanbul/task')) + on('task', require('@cypress/code-coverage/task')) } ``` @@ -56,8 +56,8 @@ Put the following in `cypress/plugins/index.js` file to use `.babelrc` file ```js module.exports = (on, config) => { - on('task', require('cypress-istanbul/task')) - on('file:preprocessor', require('cypress-istanbul/use-babelrc')) + on('task', require('@cypress/code-coverage/task')) + on('file:preprocessor', require('@cypress/code-coverage/use-babelrc')) } ``` @@ -71,7 +71,7 @@ Now the code coverage from spec files will be combined with end-to-end coverage. ## Debugging -Run tests with `DEBUG=cypress-istanbul` environment variable to see log messages +Run tests with `DEBUG=code-coverage` environment variable to see log messages ## License diff --git a/package-lock.json b/package-lock.json index 51a879513..7a8c7a074 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "cypress-istanbul", + "name": "@cypress/code-coverage", "version": "0.0.0-development", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index 2bd07ab3a..ce4af088e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "cypress-istanbul", + "name": "@cypress/code-coverage", "version": "0.0.0-development", - "description": "Saves the code coverage collected from instrumented code", + "description": "Saves the code coverage collected during Cypress tests", "main": "index.js", "scripts": { "test": "cypress run", @@ -18,7 +18,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/cypress-io/cypress-istanbul.git" + "url": "https://github.com/cypress-io/code-coverage.git" }, "keywords": [ "cypress", @@ -30,9 +30,9 @@ "author": "Gleb Bahmutov ", "license": "MIT", "bugs": { - "url": "https://github.com/cypress-io/cypress-istanbul/issues" + "url": "https://github.com/cypress-io/code-coverage/issues" }, - "homepage": "https://github.com/cypress-io/cypress-istanbul#readme", + "homepage": "https://github.com/cypress-io/code-coverage#readme", "files": [ "*.js" ], diff --git a/task.js b/task.js index 6131d1c01..5b4264e0a 100644 --- a/task.js +++ b/task.js @@ -2,7 +2,7 @@ const istanbul = require('istanbul-lib-coverage') const { join } = require('path') const { existsSync, mkdirSync, readFileSync, writeFileSync } = require('fs') const execa = require('execa') -const debug = require('debug')('cypress-istanbul') +const debug = require('debug')('code-coverage') // these are standard folder and file names used by NYC tools const outputFolder = '.nyc_output'