forked from DevExpress/devextreme-renovation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
32 lines (30 loc) · 908 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
31
32
/* eslint-disable no-useless-escape */
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');
module.exports = {
globals: {
'ts-jest': {
isolatedModules: true,
},
},
projects: [
{
displayName: 'runtime/react',
rootDir: path.resolve('packages', 'runtime', 'react'),
testMatch: ['<rootDir>/__tests__/**'],
transform: { '.*\.[jt]sx?$': ['babel-jest'] },
},
{
displayName: 'runtime/inferno-hooks',
rootDir: path.resolve('packages', 'runtime', 'inferno-hooks'),
testMatch: ['<rootDir>/__tests__/**'],
testEnvironment: 'jest-environment-jsdom',
transform: { '.*\.[jt]sx?$': ['babel-jest'] },
},
{
displayName: 'inferno-from-react',
testMatch: ['<rootDir>/packages/inferno-from-react-generator/src/__tests__/generator.test.ts'],
preset: 'ts-jest',
},
],
};