Skip to content

Commit f21ae97

Browse files
UT - Answer, Jest config changes
1 parent 92bf281 commit f21ae97

File tree

3 files changed

+555
-3
lines changed

3 files changed

+555
-3
lines changed

frontend/jest.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ const config: Config.InitialOptions = {
2626
collectCoverage: true,
2727
//collectCoverageFrom: ['src/**/*.{ts,tsx}'], // Adjust the path as needed
2828
//coverageReporters: ['json', 'lcov', 'text', 'clover'],
29+
30+
collectCoverageFrom: ['src/**/*.{ts,tsx,js,jsx}'],
2931
coverageThreshold: {
3032
global: {
3133
branches: 80,
@@ -42,6 +44,12 @@ const config: Config.InitialOptions = {
4244
'<rootDir>/src/api/',
4345
'<rootDir>/src/mocks/',
4446
//'<rootDir>/src/test/',
47+
'<rootDir>/src/components/QuestionInput/index.ts',
48+
'<rootDir>/src/components/Answer/index.ts',
49+
'<rootDir>/src/pages/NoPage.tsx',
50+
'<rootDir>/src/index.tsx',
51+
'<rootDir>/src/vite-env.d.ts',
52+
'<rootDir>/src/helpers/'
4553
],
4654
}
4755

0 commit comments

Comments
 (0)