-
Notifications
You must be signed in to change notification settings - Fork 795
/
jest.config.js
22 lines (20 loc) · 938 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
const { jestConfig } = require('@salesforce/sfdx-lwc-jest/config');
const setupFilesAfterEnv = jestConfig.setupFilesAfterEnv || [];
setupFilesAfterEnv.push('<rootDir>/jest-sa11y-setup.js');
module.exports = {
...jestConfig,
moduleNameMapper: {
'^lightning/navigation$':
'<rootDir>/force-app/test/jest-mocks/lightning/navigation',
'^lightning/platformShowToastEvent$':
'<rootDir>/force-app/test/jest-mocks/lightning/platformShowToastEvent',
'^lightning/messageService$':
'<rootDir>/force-app/test/jest-mocks/lightning/messageService',
'^lightning/mobileCapabilities$':
'<rootDir>/force-app/test/jest-mocks/lightning/mobileCapabilities',
'^lightning/mediaUtils$':
'<rootDir>/force-app/test/jest-mocks/lightning/mediaUtils',
'^@salesforce/apex$': '<rootDir>/force-app/test/jest-mocks/apex'
},
setupFilesAfterEnv
};