forked from microsoft/powercat-code-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
27 lines (26 loc) · 885 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
/* eslint-disable */
const path = require('path');
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
transform: {
// transform files with ts-jest
'^.+\\.(js|ts)$': 'ts-jest',
},
// transformIgnorePatterns: [
// // allow fluent ui transformation when running tests
// // this is because we are using path based imports
// 'node_modules/(?!(@fluentui/react/lib|@fluentui/style-utilities/lib|@fluentui/react-hooks/lib))',
// ],
globals: {
'ts-jest': {
tsconfig: {
// allow js in typescript
allowJs: true,
},
},
},
//coveragePathIgnorePatterns: ['DetailsList/fluentui-fork'],
snapshotSerializers: ['@fluentui/jest-serializer-merge-styles'],
//setupFiles: [path.resolve(path.join(__dirname, 'config', 'tests.js'))],
};