forked from trailheadapps/dreamhouse-lwc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
20 lines (18 loc) · 836 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const { jestConfig } = require('@salesforce/sfdx-lwc-jest/config');
const setupFilesAfterEnv = jestConfig.setupFilesAfterEnv || [];
setupFilesAfterEnv.push('<rootDir>/jest-sa11y-setup.js');
module.exports = {
...jestConfig,
moduleNameMapper: {
'^@salesforce/schema$': '<rootDir>/force-app/test/jest-mocks/schema',
'^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'
},
setupFilesAfterEnv
};