Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ jobs:
- run: npm run lint
- run: npx prettier --check .
- run: npm run coverage
- run: npx nyc report --reporter=text
23 changes: 0 additions & 23 deletions .waiting.html

This file was deleted.

16 changes: 2 additions & 14 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
16 changes: 2 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down