-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.js
30 lines (30 loc) · 944 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
24
25
26
27
28
29
30
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
silent: true,
testPathIgnorePatterns: [
'/node_modules/',
'/dist/',
'/esm/',
'/example/',
'/src/components/DateSelector/DateSelector.test.tsx',
],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(js|jsx)$': 'babel-jest',
},
moduleNameMapper: {
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
uuid: require.resolve('uuid'),
'@react-leaflet/core': require.resolve('./__mocks__/react-leaflet-core.js'),
'convertapi-js': require.resolve('./__mocks__/convertapi-js.js'),
},
transformIgnorePatterns: [
'/node_modules/(?!@memori.ai/memori-api-client)',
'/node_modules/(?!microsoft-cognitiveservices-speech-sdk)',
'/node_modules/(?!uuid)',
'/node_modules/(?!@react-leaflet/core)',
'/node_modules/(?!(convertapi-js|convertapi-js-node)/)',
],
};