forked from wayfarer3130/config-point
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.config.js
More file actions
31 lines (31 loc) · 853 Bytes
/
jest.config.js
File metadata and controls
31 lines (31 loc) · 853 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
29
30
31
module.exports = {
verbose: true,
roots: ['<rootDir>/tests', '<rootDir>/src'],
transform: {
'^.+\\.js$': 'babel-jest',
'^.+\\.mjs$': 'babel-jest'
},
testMatch: ['**/tests/**/*.js'],
testPathIgnorePatterns: [],
testEnvironment: 'jsdom',
testEnvironmentOptions: {
url:'https://hospital.com/?theme=altTheme',
},
moduleFileExtensions: ['js', 'mjs'],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/src/__mocks__/fileMock.js',
'\\.(css|less)$': 'identity-obj-proxy',
},
// Setup
// setupFiles: ["jest-canvas-mock/lib/index.js"],
// Coverage
collectCoverageFrom: [
'<rootDir>/src/**/*.{js,mjs}',
// Not
'!<rootDir>/src/**/*.test.js',
'!**/node_modules/**',
'!**/__tests__/**',
'!<rootDir>/dist/**',
],
};