-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
jest.config.js
20 lines (20 loc) · 940 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module.exports = {
setupFilesAfterEnv: ['<rootDir>/setupTestFramework.js'],
moduleNameMapper: {
'decap-cms-lib-auth': '<rootDir>/packages/decap-cms-lib-auth/src/index.js',
'decap-cms-lib-util': '<rootDir>/packages/decap-cms-lib-util/src/index.ts',
'decap-cms-ui-default': '<rootDir>/packages/decap-cms-ui-default/src/index.js',
'decap-cms-backend-github': '<rootDir>/packages/decap-cms-backend-github/src/index.ts',
'decap-cms-lib-widgets': '<rootDir>/packages/decap-cms-lib-widgets/src/index.ts',
'decap-cms-widget-object': '<rootDir>/packages/decap-cms-widget-object/src/index.js',
'\\.(css|less)$': '<rootDir>/__mocks__/styleMock.js',
},
snapshotSerializers: ['@emotion/jest/serializer'],
transformIgnorePatterns: [
'node_modules/(?!copy-text-to-clipboard|clean-stack|escape-string-regexp)',
],
testEnvironment: 'jsdom',
testEnvironmentOptions: {
url: 'http://localhost:8080',
},
};