-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
44 lines (43 loc) · 2.83 KB
/
jest.config.js
File metadata and controls
44 lines (43 loc) · 2.83 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
Copyright (c) 2022 Betim Beja and Shko Online LLC
Licensed under the MIT license.
*/
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
moduleNameMapper: {
'@shko-online/componentframework-mock/(.*)': '<rootDir>/ComponentFramework-Mock/src/$1',
'@albanian-xrm/test-components/(.*)': '<rootDir>/__test-components__/$1',
'@powerapps-samples/control-state-api/(.*)': '<rootDir>/PowerApps-Samples/component-framework/ControlStateAPI/$1',
'@powerapps-samples/formatting-api/(.*)': '<rootDir>/PowerApps-Samples/component-framework/FormattingAPIControl/$1',
'@powerapps-samples/image-upload-control/(.*)': '<rootDir>/PowerApps-Samples/component-framework/ImageUploadControl/$1',
'@powerapps-samples/increment-control/(.*)': '<rootDir>/PowerApps-Samples/component-framework/IncrementControl/$1',
'@powerapps-samples/linear-input-control/(.*)': '<rootDir>/PowerApps-Samples/component-framework/LinearInputControl/$1',
'@powerapps-samples/localization-api-control/(.*)': '<rootDir>/PowerApps-Samples/component-framework/LocalizationAPIControl/$1',
'@powerapps-samples/lookup-simple-control/(.*)': '<rootDir>/PowerApps-Samples/component-framework/LookupSimpleControl/$1',
'@powerapps-samples/multi-select-option-set-control/(.*)': '<rootDir>/PowerApps-Samples/component-framework/MultiSelectOptionSetControl/$1',
'@powerapps-samples/navigation-api-control/(.*)': '<rootDir>/PowerApps-Samples/component-framework/NavigationAPIControl/$1',
'@powerapps-samples/data-set-grid/(.*)': '<rootDir>/PowerApps-Samples/component-framework/DataSetGrid/$1',
'@powerapps-samples/device-api-control/(.*)': '<rootDir>/PowerApps-Samples/component-framework/DeviceApiControl/$1',
'@powerapps-samples/web-api-control/(.*)': '<rootDir>/PowerApps-Samples/component-framework/webAPIControl/$1',
'@powerapps-samples/i-frame-control/(.*)': '<rootDir>/PowerApps-Samples/component-framework/IFrameControl/$1',
'@powerapps-samples/property-set-table-control/(.*)': '<rootDir>/PowerApps-Samples/component-framework/PropertySetTableControl/$1',
'@powerapps-samples/table-control/(.*)': '<rootDir>/PowerApps-Samples/component-framework/TableControl/$1',
'@powerapps-samples/map-control/(.*)': '<rootDir>/PowerApps-Samples/component-framework/MapControl/$1',
'@powerapps-samples/table-grid/(.*)': '<rootDir>/PowerApps-Samples/component-framework/TableGrid/$1',
},
preset: 'ts-jest',
testEnvironment: 'jsdom',
transform: {
// transform files with ts-jest
"^.+\\.(jsx?|tsx?)$": "ts-jest",
"\\.resx" : "<rootDir>/raw-Loader.js"
},
"setupFiles": [
"<rootDir>/setupTests.ts"
],
coveragePathIgnorePatterns : [
"/node_modules/",
"/ComponentFramework-Mock/"
],
coverageReporters: ['cobertura', "text","html"]
}