forked from willb335/chessboardjsx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (27 loc) · 782 Bytes
/
Copy pathjest.config.js
File metadata and controls
28 lines (27 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = {
displayName: 'chessboardjsx',
testEnvironment: 'jsdom',
collectCoverageFrom: [
'**/src/Chessboard/**/*.js',
'!**/src/Chessboard/svg/**/*.js',
'!**/src/Chessboard/ErrorBoundary.js',
'!**/src/Chessboard/errorMessages.js'
],
// coverageThreshold: {
// global: {
// branches: 20,
// functions: 20,
// lines: 20,
// statements: 20
// }
// },
moduleFileExtensions: ['js', 'json'],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/test/file-mock.js',
'\\.module\\.css$': 'identity-obj-proxy',
'\\.css$': '<rootDir>/test/style-mock.js'
},
transform: { '^.+\\.js$': 'babel-jest' },
testURL: 'http://localhost/'
};