forked from AdguardTeam/AdGuardVPNExtension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.ts
More file actions
20 lines (20 loc) · 806 Bytes
/
jest.config.ts
File metadata and controls
20 lines (20 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module.exports = {
verbose: true,
testEnvironment: '<rootDir>/tests/custom-test-env.ts',
collectCoverage: true,
collectCoverageFrom: [
'**/src/background/**/*.{js,jsx}',
'**/src/common/**/*.{js,jsx}',
'!**/node_modules/**',
],
setupFiles: ['<rootDir>/tests/__setups__/chrome.ts'],
setupFilesAfterEnv: ['<rootDir>/tests/__setups__/jest-setup.ts'],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/tests/__mocks__/fileMock.ts',
'\\.(css|less|pcss)$': '<rootDir>/tests/__mocks__/styleMock.ts',
},
transform: {
'^.+\\.(t|j)sx?$': '@swc/jest',
},
transformIgnorePatterns: ['node_modules/(?!(is-ip|ip-regex|@vespaiach/axios-fetch-adapter)/)'],
};