Skip to content

Commit 0a36f85

Browse files
chore: update jest config and add coverage report
1 parent e2a88f4 commit 0a36f85

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

jest.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import type { JestConfigWithTsJest } from 'ts-jest';
22

33
const config: JestConfigWithTsJest = {
4-
preset: 'ts-jest/presets/default-esm',
5-
extensionsToTreatAsEsm: ['.ts'],
4+
preset: 'ts-jest',
65
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(tsx?)$',
76
testEnvironment: 'jest-environment-jsdom',
87
moduleFileExtensions: ['ts', 'tsx', 'js'],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"postversion": "git push && git push --tags",
4242
"lint": "eslint src/*.ts src/**/*.ts",
4343
"lint:fix": "eslint src/*.ts src/**/*.ts --quiet --fix",
44-
"test": "jest",
44+
"test": "jest --coverage",
4545
"ts-coverage": "typescript-coverage-report --threshold=86",
4646
"version": "yarn run format && git add -A src"
4747
},

0 commit comments

Comments
 (0)