From c778d93ac1b86c0ebf9e3337b8c33f05b2d20220 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 6 Nov 2018 20:35:14 +1100 Subject: [PATCH] added coverage --- .gitignore | 3 ++- package.json | 3 ++- test/test.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b512c09..c9106a7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -node_modules \ No newline at end of file +node_modules +.nyc_output diff --git a/package.json b/package.json index f9b7d1c..fb30784 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise", "main": "through2.js", "scripts": { - "test": "node test/test.js | faucet" + "test": "nyc node test/test.js | faucet && nyc report" }, "repository": { "type": "git", @@ -25,6 +25,7 @@ "devDependencies": { "bl": "~2.0.1", "faucet": "0.0.1", + "nyc": "~13.1.0", "stream-spigot": "~3.0.6", "tape": "~4.9.1" } diff --git a/test/test.js b/test/test.js index 2418be8..1e9573d 100644 --- a/test/test.js +++ b/test/test.js @@ -358,4 +358,4 @@ test('can be destroyed twice', function(t) { th.destroy() th.destroy() -}) \ No newline at end of file +})