-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
30 lines (28 loc) · 1.04 KB
/
jest.config.js
File metadata and controls
30 lines (28 loc) · 1.04 KB
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
29
30
/*
* Copyright (c) New Cloud Technologies, Ltd., 2013-2026
*
* You can not use the contents of the file in any way without New Cloud Technologies, Ltd. written permission.
* To obtain such a permit, you should contact New Cloud Technologies, Ltd. at http://ncloudtech.com/contact.html
*
*/
const UTILS_FOLDER_PATH = './**/utils/**/*';
const UTILS_FILES_PATH = './**/utils.ts';
module.exports = {
collectCoverage: true,
collectCoverageFrom: [UTILS_FOLDER_PATH, UTILS_FILES_PATH],
coverageDirectory: './coverage/',
moduleNameMapper: {
'.+\\.(css|styl|less|sass|scss)$': 'identity-obj-proxy',
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/__mocks__/fileMock.js',
},
testPathIgnorePatterns: ['/.coverage/', '/node_modules/', '/patches/'],
transform: {
'^.+\\.[t|j]sx?$': 'ts-jest',
},
coverageThreshold: {
[UTILS_FOLDER_PATH]: { lines: 80 },
[UTILS_FILES_PATH]: { lines: 80 },
},
roots: ['<rootDir>/src'],
};