Merge pull request #28 from Hoekstraa/main

Add Istanbul to see test coverage upon testing all files
This commit is contained in:
Alt 2022-10-09 13:15:44 +02:00 committed by GitHub
commit 0963fdd799
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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", "clean": "tsc --build --clean",
"format": "prettier -w .", "format": "prettier -w .",
"format:report": "prettier -c .", "format:report": "prettier -c .",
"test:all": "mocha --recursive test", "test:all": "tsc && nyc mocha --recursive test",
"test:single": "mocha", "test:single": "mocha",
"start": "ts-node npx/bitburner-filesync.ts" "start": "ts-node npx/bitburner-filesync.ts"
}, },
@ -33,12 +33,11 @@
"cheap-watch": "^1.0.4", "cheap-watch": "^1.0.4",
"convict": "^6.2.3", "convict": "^6.2.3",
"signal-js": "^3.0.1", "signal-js": "^3.0.1",
"ts-node": "^10.9.1",
"typescript": "^4.8.4", "typescript": "^4.8.4",
"ws": "^8.8.1" "ws": "^8.8.1"
}, },
"devDependencies": { "devDependencies": {
"prettier": "^2.7.1", "@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/chai": "^4.3.3", "@types/chai": "^4.3.3",
"@types/convict": "^6.1.1", "@types/convict": "^6.1.1",
"@types/expect": "^24.3.0", "@types/expect": "^24.3.0",
@ -49,7 +48,11 @@
"@types/ws": "^8.5.3", "@types/ws": "^8.5.3",
"chai": "^4.3.6", "chai": "^4.3.6",
"mocha": "^10.0.0", "mocha": "^10.0.0",
"nyc": "^15.1.0",
"prettier": "^2.7.1",
"sinon": "^14.0.0", "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": { "ts-node": {
"files": true, "files": true,
"esm": true, "esm": true,
"experimentalSpecifierResolution": "node" "experimentalSpecifierResolution": "node",
"sourceMap": true
}, },
"include": ["src/signals.d.ts", "src/**/*", "npx/**/*"], "include": ["src/signals.d.ts", "src/**/*", "npx/**/*"],
"extends": "./tsconfig.base.json" "extends": "./tsconfig.base.json"