Skip to content

Commit

Permalink
Remove nyc, use c8 for coverage in oauth.
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Maj committed May 14, 2024
1 parent 61e5526 commit 7aee09b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 20 deletions.
7 changes: 7 additions & 0 deletions packages/oauth/.c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"include": ["src/*.ts"],
"exclude": ["**/*.spec.js", "**/*.spec.ts"],
"reporter": ["lcov", "text"],
"all": false,
"cache": true
}
4 changes: 1 addition & 3 deletions packages/oauth/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ package-lock.json
/dist

# coverage
/.nyc_output
/coverage
*.lcov
tmp/
tmp/
14 changes: 0 additions & 14 deletions packages/oauth/.nycrc.json

This file was deleted.

8 changes: 5 additions & 3 deletions packages/oauth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@
"scripts": {
"prepare": "npm run build",
"build": "npm run build:clean && tsc",
"build:clean": "shx rm -rf ./dist ./coverage ./.nyc_output",
"build:clean": "shx rm -rf ./dist ./coverage",
"lint": "eslint --fix --ext .ts src",
"test": "npm run build && npm run lint && npm run test:mocha",
"test:mocha": "nyc --reporter=text-summary mocha --config .mocharc.json src/*.spec.js src/**/*.spec.js src/*.spec.ts src/**/*.spec.ts",
"test": "npm run lint && npm run coverage",
"coverage": "npm run build && c8 npm run test:mocha",
"test:mocha": "mocha --config .mocharc.json src/*.spec.js src/**/*.spec.js src/*.spec.ts src/**/*.spec.ts",
"ref-docs:model": "api-extractor run",
"watch": "npx nodemon --watch 'src' --ext 'ts' --exec npm run build"
},
Expand All @@ -52,6 +53,7 @@
"@types/sinon": "^17",
"@typescript-eslint/eslint-plugin": "^6",
"@typescript-eslint/parser": "^6",
"c8": "^9.1.0",
"chai": "^4",
"eslint": "^8",
"eslint-config-airbnb-base": "^15",
Expand Down

0 comments on commit 7aee09b

Please sign in to comment.