Skip to content

Commit 7f82cc2

Browse files
Chore: Setup jest
1 parent a81d2d7 commit 7f82cc2

File tree

5 files changed

+4118
-630
lines changed

5 files changed

+4118
-630
lines changed

config/jest.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
collectCoverage: true,
5+
moduleFileExtensions: ['ts', 'tsx', 'js'],
6+
transform: {
7+
"^.+\\.tsx?$": "ts-jest"
8+
},
9+
testMatch: [
10+
'**/?(*.)+(spec|test).(ts|js)'
11+
],
12+
rootDir: path.resolve(__dirname, '..'),
13+
moduleNameMapper: {
14+
'\\.(css|less|sass|scss)$': '<rootDir>/tests/styleMock.js'
15+
}
16+
}

0 commit comments

Comments
 (0)