Skip to content

Commit 148423c

Browse files
committed
add Jest unit/integration tests and Jest config
1 parent 9d88dde commit 148423c

File tree

11 files changed

+9104
-3431
lines changed

11 files changed

+9104
-3431
lines changed

frontend/package-lock.json

Lines changed: 4709 additions & 2940 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"react": "^17.0.1",
1212
"react-dom": "^17.0.1",
1313
"react-icons": "^5.3.0",
14-
"react-scripts": "5.0.1",
14+
"react-scripts": "^5.0.1",
1515
"web-vitals": "^0.2.4"
1616
},
1717
"scripts": {

jest.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
testEnvironment: 'node',
3+
testMatch: ['**/__tests__/**/*.js', '**/?(*.)+(spec|test).js'],
4+
collectCoverageFrom: [
5+
'src/**/*.js',
6+
'!src/**/*.test.js',
7+
'!src/**/*.spec.js'
8+
],
9+
coverageDirectory: 'coverage',
10+
coverageReporters: ['text', 'lcov', 'html'],
11+
setupFilesAfterEnv: ['<rootDir>/tests/setup.js'],
12+
testTimeout: 10000,
13+
testPathIgnorePatterns: ['/node_modules/', '<rootDir>/frontend/'],
14+
};

0 commit comments

Comments
 (0)