-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Run tests with Jest and collect coverage
- Loading branch information
Showing
21 changed files
with
7,577 additions
and
4,365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"extends": "./node_modules/gts/" | ||
"extends": "./node_modules/gts/", | ||
"rules": { | ||
"@typescript-eslint/no-unused-vars": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
build/ | ||
coverage/ | ||
node_modules/ | ||
.eslintcache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export default { | ||
extensionsToTreatAsEsm: ['.ts'], | ||
moduleNameMapper: { | ||
'^(\\.{1,2}/.*)\\.js$': '$1', | ||
}, | ||
collectCoverage: true, | ||
collectCoverageFrom: [ | ||
'**/src/**/*.ts', // Include files that are not covered by tests. | ||
'!**/src/**/*.d.ts', // Don't show d.ts files on code coverage overview. | ||
], | ||
coverageReporters: ['json-summary', 'text'], | ||
coverageThreshold: { | ||
global: { | ||
lines: 65.49, | ||
statements: 64.98, | ||
branches: 56.08, | ||
functions: 71.15, | ||
}, | ||
}, | ||
transform: { | ||
'^.+\\.ts$': '@swc/jest', | ||
}, | ||
}; |
Oops, something went wrong.