forked from EOSIO/ual-reactjs-renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
23 lines (23 loc) · 926 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
clearMocks: true,
collectCoverageFrom: ['src/**/*.{js,jsx,mjs}'],
coverageDirectory: 'coverage',
moduleFileExtensions: ['js', 'json', 'jsx'],
moduleNameMapper: {
'ual-scatter': '<rootDir>/__mocks__/Scatter.js',
'providerProps': '<rootDir>/__mocks__/providerProps.js',
'localStorageMock': '<rootDir>/__mocks__/localStorageMock.js',
'UALAccountInputProps': '<rootDir>/__mocks__/UALAccountInputProps.js',
'AuthenticatorMocks': '<rootDir>/__mocks__/AuthenticatorMocks.js',
},
setupFiles: ['<rootDir>/__setup__/enzyme.config.js'],
testEnvironment: 'jsdom',
testMatch: ['**/__tests__/**/*.js?(x)', '**/?(*.)+(spec|test).js?(x)'],
testPathIgnorePatterns: ['\\\\node_modules\\\\'],
testURL: 'http://localhost',
transformIgnorePatterns: ['<rootDir>/node_modules/'],
verbose: false,
transform: {
'^.+\\.js$': '<rootDir>/__setup__/config.jest.transform.js'
},
};