Skip to content

Commit

Permalink
refactor: better coverage script and generate source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
f3rno64 committed Dec 18, 2023
1 parent c1af556 commit 595fc30
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extension": ["ts"],
"spec": "src/tests/**/*.ts",
"require": "ts-node/register"
"require": ["ts-node/register", "source-map-support/register"]
}
6 changes: 6 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"all": true,
"exclude": ["coverage/**", "styles/**", "templates/**", "dist/**"],
"reporter": ["lcov", "text-summary"]
}
27 changes: 27 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
},
"devDependencies": {
"@eslint/js": "^8.55.0",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/chai": "^4.3.11",
"@types/chai-as-promised": "^7.1.8",
"@types/date-fns": "^2.6.0",
Expand All @@ -53,6 +54,7 @@
"husky": "^8.0.3",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"source-map-support": "^0.5.21",
"standard-version": "^9.5.0",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"allowSyntheticDefaultImports": true,
"importHelpers": true,
"alwaysStrict": true,
"sourceMap": false,
"sourceMap": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
Expand Down

0 comments on commit 595fc30

Please sign in to comment.