forked from alibaba/lowcode-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (27 loc) · 745 Bytes
/
jest.config.js
File metadata and controls
28 lines (27 loc) · 745 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
const esModules = [
'@alilc/lowcode-datasource-engine',
].join('|');
module.exports = {
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(js|ts|tsx|jsx)$': 'babel-jest',
'^.+\\.(css|less|scss)$': './test/mock/styleMock.js',
},
// testMatch: ['**/bugs/*.test.ts'],
// testMatch: ['(/tests?/.*(test))\\.[jt]s$'],
// transformIgnorePatterns: [
// `/node_modules/(?!${esModules})/`,
// ],
testEnvironment: 'jsdom',
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
collectCoverage: false,
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
],
moduleNameMapper: {
'^.+.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
},
setupFilesAfterEnv: [
'./test/setup.ts',
],
};