Add Istanbul for test coverage

This commit is contained in:
Zoë Hoekstra 2022-10-09 13:07:43 +02:00
parent f17f89706a
commit fbb104c869
No known key found for this signature in database
GPG key ID: F9B7B7D8130F3323
4 changed files with 2685 additions and 33 deletions

4
.nycrc.json Normal file
View file

@ -0,0 +1,4 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"all": true
}

2700
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -10,7 +10,7 @@
"clean": "tsc --build --clean",
"format": "prettier -w .",
"format:report": "prettier -c .",
"test:all": "mocha --recursive test",
"test:all": "tsc && nyc mocha --recursive test",
"test:single": "mocha",
"start": "ts-node npx/bitburner-filesync.ts"
},
@ -33,12 +33,11 @@
"cheap-watch": "^1.0.4",
"convict": "^6.2.3",
"signal-js": "^3.0.1",
"ts-node": "^10.9.1",
"typescript": "^4.8.4",
"ws": "^8.8.1"
},
"devDependencies": {
"prettier": "^2.7.1",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/chai": "^4.3.3",
"@types/convict": "^6.1.1",
"@types/expect": "^24.3.0",
@ -49,7 +48,11 @@
"@types/ws": "^8.5.3",
"chai": "^4.3.6",
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"prettier": "^2.7.1",
"sinon": "^14.0.0",
"sinon-chai": "^3.7.0"
"sinon-chai": "^3.7.0",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.1"
}
}

View file

@ -2,7 +2,8 @@
"ts-node": {
"files": true,
"esm": true,
"experimentalSpecifierResolution": "node"
"experimentalSpecifierResolution": "node",
"sourceMap": true
},
"include": ["src/signals.d.ts", "src/**/*", "npx/**/*"],
"extends": "./tsconfig.base.json"