forked from GetStream/stream-chat-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
30 lines (30 loc) · 880 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
/* eslint-disable no-undef */
module.exports = {
globals: {
ICAL: {},
},
globalSetup: './jest-global-setup.js',
maxConcurrency: 15,
moduleNameMapper: {
'\\.(css|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/assetsTransformer.js',
'mock-builders(.*)$': '<rootDir>/src/mock-builders$1',
},
preset: 'ts-jest',
setupFiles: ['core-js'],
testPathIgnorePatterns: ['/node_modules/', '/examples/', '__snapshots__', '/e2e/'],
testRegex: [
/**
* If you want to test single file, mention it here
* e.g.,
* "src/components/ChannelList/__tests__/ChannelList.test.js",
* "src/components/MessageList/__tests__/MessageList.test.js"
*/
],
transform: {
'\\.(ts|tsx)?$': ['ts-jest'],
'^.+\\.(js|jsx)?$': 'babel-jest',
},
transformIgnorePatterns: [],
verbose: true,
};