Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode committed Oct 26, 2023
1 parent 58f84a9 commit 282079d
Show file tree
Hide file tree
Showing 5 changed files with 234 additions and 832 deletions.
1 change: 0 additions & 1 deletion nyc.config.coverage.json → .c8rc.coverage.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
"lines": 100,
"per-file": false,
"reporter": ["html", "lcov", "text"],
"require": ["ts-node/register"],
"statements": 100
}
3 changes: 1 addition & 2 deletions nyc.config.json → .c8rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
"extension": [".ts"],
"include": ["src/**/*.ts"],
"per-file": false,
"reporter": ["text-summary"],
"require": ["ts-node/register"]
"reporter": ["text-summary"]
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.cache
.DS_Store
.idea/
.nyc_output/
.vscode/
.yarnclean
config.json
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@
"@types/jasmine": "4.3.5",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"c8": "^8.0.1",
"cross-env": "7.0.3",
"dotenv-defaults": "5.0.2",
"eslint": "8.46.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-sort-keys-fix": "1.1.2",
"eslint-plugin-typescript-sort-keys": "2.3.0",
"eslint": "8.46.0",
"generate-changelog": "1.8.0",
"husky": "8.0.3",
"jasmine": "3.99.0",
"lint-staged": "14.0.1",
"nock": "13.3.3",
"nyc": "15.1.0",
"prettier": "3.0.3",
"rimraf": "5.0.5",
"ts-node": "10.9.1",
"typedoc": "0.25.2",
"typedoc-plugin-markdown": "3.15.4",
"typedoc": "0.25.2",
"typescript": "^5.2.2"
},
"engines": {
Expand Down Expand Up @@ -76,7 +76,7 @@
"scripts": {
"build": "tsc",
"changelog:commit": "git add CHANGELOG.md && git commit -m \"docs: Updated changelog\"",
"clean": "rimraf .nyc_output coverage dist",
"clean": "rimraf coverage dist",
"demo:dump:candles": "cross-env NODE_DEBUG=coinbase-pro-node* ts-node src/demo/dump-candles.ts",
"demo:rest:get:candles": "cross-env NODE_DEBUG=coinbase-pro-node* ts-node src/demo/rest-get-candles.ts",
"demo:rest:watch:candles": "cross-env NODE_DEBUG=coinbase-pro-node* ts-node src/demo/rest-watch-candles.ts",
Expand All @@ -99,8 +99,8 @@
"release:major": "generate-changelog -M && yarn changelog:commit && yarn docs:release && npm version major",
"release:minor": "generate-changelog -m && yarn changelog:commit && yarn docs:release && npm version minor",
"release:patch": "generate-changelog -p && yarn changelog:commit && yarn docs:release && npm version patch",
"test": "ts-node-esm ./node_modules/.bin/jasmine --config=jasmine.json",
"test:dev": "npm run test",
"test": "c8 --config=.c8rc.coverage.json ts-node-esm ./node_modules/.bin/jasmine --config=jasmine.json",
"test:dev": "c8 ts-node-esm ./node_modules/.bin/jasmine --config=jasmine.json",
"test:types": "yarn lint:types",
"prepare": "husky install"
},
Expand Down

0 comments on commit 282079d

Please sign in to comment.