From 49a8eab840014c66d099aeb1a0302c22900cb6d9 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 6 Sep 2017 23:23:45 +0430 Subject: [PATCH] fix jest coverage unwanted cov codes were adding to nuxt.config.js when options serialized --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 36b47ce..bd8c860 100755 --- a/package.json +++ b/package.json @@ -25,7 +25,12 @@ "jest": { "testEnvironment": "node", "coverageDirectory": "./coverage/", - "collectCoverage": true + "collectCoverage": true, + "collectCoverageFrom": [ + "lib", + "test", + "!test/fixture" + ] }, "dependencies": { "axios": "^0.16.2",