From 116a91ebfe133d2cdabfe4399586676d95f9e48a Mon Sep 17 00:00:00 2001 From: Aaron Queen Date: Mon, 20 Sep 2021 22:00:12 -0600 Subject: [PATCH 1/4] Update code-coverage.md --- docs/recipes/code-coverage.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/recipes/code-coverage.md b/docs/recipes/code-coverage.md index de8fbd4d1..8997f5a53 100644 --- a/docs/recipes/code-coverage.md +++ b/docs/recipes/code-coverage.md @@ -2,29 +2,28 @@ Translations: [Español](https://github.com/avajs/ava-docs/blob/master/es_ES/docs/recipes/code-coverage.md), [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/recipes/code-coverage.md), [Italiano](https://github.com/avajs/ava-docs/blob/master/it_IT/docs/recipes/code-coverage.md), [日本語](https://github.com/avajs/ava-docs/blob/master/ja_JP/docs/recipes/code-coverage.md), [Português](https://github.com/avajs/ava-docs/blob/master/pt_BR/docs/recipes/code-coverage.md), [Русский](https://github.com/avajs/ava-docs/blob/master/ru_RU/docs/recipes/code-coverage.md), [简体中文](https://github.com/avajs/ava-docs/blob/master/zh_CN/docs/recipes/code-coverage.md) -Use [`nyc`] to compute the code coverage of your tests. +Use [`c8`] to compute the code coverage of your tests. -First install [`nyc`]: +First install [`c8`]: ``` -$ npm install --save-dev nyc +$ npm install --save-dev c8 ``` -At its simplest run AVA through [`nyc`]. In your `package.json` file: +At its simplest run AVA through [`c8`]. In your `package.json` file: ```json { "scripts": { - "test": "nyc ava" + "test": "c8 ava" } } ``` -You may want to exclude the `.nyc_output` and `coverage` directories from source control. Assuming you're using Git, add the following to your `.gitignore` file: +You may want to exclude the `coverage` directory from source control. Assuming you're using Git, add the following to your `.gitignore` file: ``` -.nyc_output coverage ``` -[`nyc`]: https://github.com/istanbuljs/nyc +[`c8`]: https://github.com/bcoe/c8 From 7a6bce7a5db4d0ec67cd71c83749170d723a0dda Mon Sep 17 00:00:00 2001 From: Aaron Queen Date: Mon, 20 Sep 2021 22:01:14 -0600 Subject: [PATCH 2/4] Update vue.md --- docs/recipes/vue.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/recipes/vue.md b/docs/recipes/vue.md index e478562b9..6275a6611 100644 --- a/docs/recipes/vue.md +++ b/docs/recipes/vue.md @@ -73,11 +73,11 @@ test('renders', t => { ## Coverage reporting -Follow the [coverage reporting recipe](code-coverage.md), additionally adding the `.vue` extension to the `nyc` config to instrument `.vue` files. +Follow the [coverage reporting recipe](code-coverage.md), additionally adding the `.vue` extension to the `c8` config to instrument `.vue` files. ```json { - "nyc": { + "c8": { "extension": [ ".js", ".vue" From b8c03c7347f0199062a43f0ba864ff70aaf55e44 Mon Sep 17 00:00:00 2001 From: Aaron Queen Date: Mon, 20 Sep 2021 22:02:29 -0600 Subject: [PATCH 3/4] Update beautify-stack.js --- lib/reporters/beautify-stack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reporters/beautify-stack.js b/lib/reporters/beautify-stack.js index cb65eedb5..0f86819c8 100644 --- a/lib/reporters/beautify-stack.js +++ b/lib/reporters/beautify-stack.js @@ -4,7 +4,7 @@ const stackUtils = new StackUtils({ ignoredPackages: [ '@ava/typescript', 'ava', - 'nyc', + 'c8', ], internals: [ // AVA internals, which ignoredPackages don't ignore when we run our own unit tests. From 327ef3455af0bd1ef97b8aa18e510a275824b03d Mon Sep 17 00:00:00 2001 From: Aaron Queen Date: Sun, 26 Sep 2021 11:59:44 -0600 Subject: [PATCH 4/4] Update beautify-stack.js --- lib/reporters/beautify-stack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reporters/beautify-stack.js b/lib/reporters/beautify-stack.js index 0f86819c8..cb65eedb5 100644 --- a/lib/reporters/beautify-stack.js +++ b/lib/reporters/beautify-stack.js @@ -4,7 +4,7 @@ const stackUtils = new StackUtils({ ignoredPackages: [ '@ava/typescript', 'ava', - 'c8', + 'nyc', ], internals: [ // AVA internals, which ignoredPackages don't ignore when we run our own unit tests.