-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
25 lines (23 loc) · 876 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
module.exports = {
// disable css files mock for bundler-webpack's css import tests
moduleNameMapper: {},
transformIgnorePatterns: ['/node_modules/'],
collectCoverageFrom(memo) {
return memo.concat([
// benchmarks
'!benchmarks/**/*',
'!packages/bundler-webpack/src/getConfig/setPublicPath.ts',
'!packages/bundler-webpack/src/getConfig/runtimePublicPathEntry.ts',
'!packages/bundler-webpack/src/webpackHotDevClient/*',
// cli 入口不测
'!packages/bundler-webpack/src/cli.ts',
'!packages/umi/src/cli.ts',
'!packages/umi/src/forkedDev.ts',
'!packages/umi/src/ServiceWithBuiltIn.ts',
'!packages/umi/src/utils/fork.ts',
'!packages/create-app/src/cli.ts',
// dev 在 fork 出来的子进程下,测不了
'!packages/preset-built-in/src/plugins/commands/dev/**/*',
]);
},
};