☕️ Classic, reliable, trusted test framework for Node.js and the browser
Move nyc configuration to .nycrc. Exclude tests from getting annotated for coverage
Peter Müller8750c3f5fb50
diff --git a/.nycrc b/.nycrcnew file mode 100644index 00000000..8848fa90--- /dev/null+++ b/.nycrc@@ -0,0 +1,10 @@+{+ "reporter": [+ "json",+ "text-summary"+ ],+ "exclude": [+ "lib/browser",+ "test/**/*"+ ]+}diff --git a/Makefile b/Makefileindex 8a9662d9..c7d9e8a3 100644--- a/Makefile+++ b/Makefile@@ -6,7 +6,7 @@ NYC := "node_modules/.bin/nyc"ifdef COVERAGEdefine test_node- $(NYC) --report-dir coverage/reports/$(1) --reporter json --exclude browser $(MOCHA)+ $(NYC) --report-dir coverage/reports/$(1) $(MOCHA)endefelsetest_node := $(MOCHA)