-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathjest.config.js
35 lines (35 loc) · 936 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
23
24
25
26
27
28
29
30
31
32
33
34
35
module.exports = {
setupFilesAfterEnv: [
'<rootDir>/runtime/setupTest.js',
],
moduleNameMapper: {
'\\.svg$': '<rootDir>/runtime/__mocks__/svg.js',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/runtime/__mocks__/file.js',
'\\.(css|scss)$': require.resolve('identity-obj-proxy'),
'site.config': '<rootDir>/runtime/test.site.config.tsx',
},
testEnvironment: 'jsdom',
testEnvironmentOptions: {
url: 'http://localhost/',
},
rootDir: process.cwd(),
collectCoverageFrom: [
'runtime/**/*.{js,jsx,ts,tsx}',
],
coveragePathIgnorePatterns: [
'/node_modules/',
'setupTest.js',
],
transformIgnorePatterns: [
'/node_modules/(?!(@openedx|@edx)/)',
],
modulePathIgnorePatterns: [
'<rootDir>/dist',
'<rootDir>/shell',
'<rootDir>/tools',
],
testPathIgnorePatterns: [
'/node_modules/',
'<rootDir>/dist/',
],
};