From 06b8d925d725011a3979f02124e7f110d9c53382 Mon Sep 17 00:00:00 2001 From: Daniel Mundra Date: Sat, 21 Sep 2024 13:19:41 -0700 Subject: [PATCH] Moved code coverage in the test to a separate command. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8ceaf31..704ec09 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ }, "scripts": { "build": "tsc", - "test": "nyc --reporter=lcov --reporter=text ./node_modules/.bin/_mocha 'tests/**/*.test.ts'", + "test": "./node_modules/.bin/_mocha 'tests/**/*.test.ts'", + "test-with-code-coverage": "nyc --reporter=lcov --reporter=text ./node_modules/.bin/_mocha 'tests/**/*.test.ts'", "lint": "eslint . --ext .ts", "generate-example-output": "npx ts-node src/openacr.ts output -f tests/examples/valid.yaml -c catalog/2.4-edition-wcag-2.0-508-en.yaml -o tests/examples/valid.markdown", "generate-drupal-output": "npx ts-node src/openacr.ts output -f openacr/drupal-9.yaml -c catalog/2.4-edition-wcag-2.1-508-en.yaml -o openacr/drupal-9.markdown",