diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e8c16e3b..5f953b98 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -33,4 +33,3 @@ jobs: - run: npm run lint - run: npx prettier --check . - run: npm run coverage - - run: npx nyc report --reporter=text diff --git a/.waiting.html b/.waiting.html deleted file mode 100644 index 8a4f44b5..00000000 --- a/.waiting.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - Code coverage report for All files - - - -
- This page will refresh with a coverage report, as long as you have - executed npm run dev. Please be patient. -
- - diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c4ae009c..5cc58fe1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -119,26 +119,14 @@ var util = require("./util"); ## Checking code coverage -It's fun to find ways to test lines of code that aren't visited by -the tests yet. +It's fun to find ways to test lines of code that aren't visited by the tests yet. ```shell $ npm run coverage $ open coverage/index.html ``` -This will allow you to browse to red sections of the code that need -more attention. Even more cool, however, is to run: - -```shell -$ npm run dev -``` - -(On some operating systems, this may pop up a request for node to be able to open a socket. Click "Allow" or the equivalent.) - -This will run the coverage tools, and monitor all of the files in the -project, re-running the coverage tools and refreshing the browser when -any files change. There will be a small web server running on port 4103 to enable this. Control-C to stop. +This will allow you to browse to red sections of the code that need more attention. ## Updating the `lib/mappings.wasm` WebAssembly Module diff --git a/package.json b/package.json index 7f21e891..3c202fc0 100644 --- a/package.json +++ b/package.json @@ -66,14 +66,8 @@ "license": "BSD-3-Clause", "scripts": { "lint": "eslint --fix *.js lib/ test/", - "prebuild": "npm run lint", "test": "node test/run-tests.js", - "coverage": "nyc node test/run-tests.js", - "setup": "mkdir -p coverage && cp -n .waiting.html coverage/index.html || true", - "dev:live": "live-server --port=4103 --ignorePattern='(js|css|png)$' coverage", - "dev:watch": "watch 'npm run coverage' lib/ test/", - "predev": "npm run setup", - "dev": "npm-run-all -p --silent dev:*", + "coverage": "nyc --reporter=text --reporter=html npm test", "prettier": "prettier --write .", "clean": "rm -rf coverage .nyc_output", "toc": "doctoc --title '## Table of Contents' README.md && doctoc --title '## Table of Contents' CONTRIBUTING.md" @@ -82,14 +76,8 @@ "doctoc": "^1.3.1", "eslint": "^8.24.0", "eslint-config-prettier": "^8.5.0", - "live-server": "^1.2.0", - "npm-run-all": "^4.1.2", "nyc": "^11.7.1", - "prettier": "^2.7.1", - "watch": "^1.0.2" - }, - "nyc": { - "reporter": "html" + "prettier": "^2.7.1" }, "dependencies": { "whatwg-url": "^7.0.0"