Skip to content

Commit fa1f866

Browse files
committed
Add Sonarqube support & Fix tests and code smells
1 parent e8e41fa commit fa1f866

15 files changed

Lines changed: 1298 additions & 17 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
# testing
99
/coverage
10+
test-report.xml
1011

1112
# production
1213
/build
@@ -16,11 +17,15 @@
1617
.env.local
1718
.env.development.local
1819
.env.test.local
20+
test-report.xml
1921
.env.production.local
2022

2123
npm-debug.log*
2224
yarn-debug.log*
2325
yarn-error.log*
2426

2527
package.json*
28+
2629
.env
30+
31+
.scannerwork

jest.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ const config = {
99
transformIgnorePatterns: ['<rootDir>/node_modules/'],
1010
coveragePathIgnorePatterns: ['<rootDir>/src/index.tsx'],
1111
testRegex: 'src/.*\\.test\\.tsx?$',
12+
testMatch: ['<rootDir>/src/**/*.test.tsx?$', '<rootDir>/src/test/**/*.test.tsx?$'],
1213
setupFiles: ['<rootDir>/src/setupTests.ts'],
14+
testResultsProcessor: 'jest-sonar-reporter',
1315
};
1416

1517
module.exports = config;

0 commit comments

Comments
 (0)