From 592ce80411f67314b3a38ef3d03ffb26f84f1eaa Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Sat, 23 Nov 2019 21:58:24 +0800 Subject: [PATCH] - Fix coverage path - Add reporters for nyc --- package.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1d2b0c35..bcdfdf10 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "start": "echo \"Open file to http://localhost:8000/test/all_tests.html\" && static -p 8000", "cypress:open": "cypress open", "cypress:run": "cypress run", - "open-report": "open http://localhost:3000/coverage/", + "open-report": "open http://localhost:8000/coverage/", "start-open-report": "run-p start open-report", "instrument": "npx nyc instrument editor instrumented", "open-cov": "npm-run-all instrument --parallel --race start cypress:open", @@ -43,6 +43,12 @@ "test": "run-p start cypress:run", "browser-test": "npm run test-prep && open-cli http://localhost:8000/test/all_tests.html && static -p 8000" }, + "nyc": { + "reporter": [ + "text", + "html" + ] + }, "repository": { "type": "git", "url": "git+https://github.com/SVG-Edit/svgedit.git"