-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
27 lines (25 loc) · 933 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
/*
Copyright (c) 2022 Betim Beja and Shko Online LLC
Licensed under the MIT license.
*/
const path = require('path');
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
moduleNameMapper: {
'@fluentui/react': '<rootDir>/node_modules/@fluentui/react',
'@fluentui/date-time-utilities/(.*)': '<rootDir>/node_modules/@fluentui/date-time-utilities/$1',
},
preset: 'ts-jest',
testEnvironment: 'jsdom',
transform: {
// transform files with ts-jest
'^.+\\.(jsx?|tsx?)$': [
'ts-jest'
],
},
coveragePathIgnorePatterns: ['/node_modules/'],
testMatch: ['<rootDir>/__tests__/**/*.[jt]s?(x)', '<rootDir>/?(*.)+(spec|test).[jt]s?(x)'],
setupFiles: [path.resolve(path.join(__dirname, 'setup-tests.ts'))],
coverageReporters: ['cobertura', 'lcov', 'text', 'html'],
transformIgnorePatterns: ["node_modules/(?!(sinon))"]
};