diff --git a/.gitignore b/.gitignore index a547bf3..4147656 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ dist-ssr *.njsproj *.sln *.sw? + +# Coverage report +coverage \ No newline at end of file diff --git a/jest.config.js b/jest.config.js index ba73e36..819a05d 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,5 +10,7 @@ export default { testMatch: ['/test/**/*.test.(ts|tsx)'], transform: { '^.+\\.(ts|tsx)$': ['ts-jest', { useESM: true, tsconfig: 'tsconfig.jest.json' }] - } + }, + collectCoverage:true, + collectCoverageFrom: ['/src/**/*.{ts,tsx,js,jsx}'], }; \ No newline at end of file