-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
27 lines (23 loc) · 805 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
const { readdirSync } = require('fs');
const { join } = require('path');
const pkgList = readdirSync(join(__dirname, './packages')).filter((pkg) => pkg.charAt(0) !== '.');
const moduleNameMapper = {};
pkgList.forEach((shortName) => {
const name = `@lekp/pro-${shortName}`;
moduleNameMapper[name] = join(__dirname, `./packages/${shortName}/src`);
});
module.exports = {
collectCoverageFrom: [
'packages/**/src/**/*.{ts,tsx}',
'!packages/**/src/demos/**',
'!packages/**/src/component/ColumnSetting/DndItem.tsx',
],
moduleNameMapper,
testURL: 'http://localhost',
verbose: true,
snapshotSerializers: [require.resolve('enzyme-to-json/serializer')],
extraSetupFiles: ['./tests/setupTests.js'],
globals: {
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: false,
},
};