-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathjest.config.js
35 lines (35 loc) · 1.05 KB
/
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 = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
testMatch: [
'<rootDir>/src/sdk/**/?(*.)(spec|test).{js,ts}'
],
transform: {
'^.+\\.js$': 'babel-jest',
},
coveragePathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/src/sdk/__tests__/_setup/_utils.js',
'<rootDir>/src/sdk/__tests__/_setup/_matchers.js',
'<rootDir>/src/sdk/__tests__/_setup/_structuredClone.js',
'<rootDir>/src/sdk/__tests__/_setup/global.d.ts',
'<rootDir>/src/sdk/__tests__/main/main.suite.js',
'<rootDir>/src/sdk/__tests__/storage/storage.suite.js'
],
setupFiles: [
'jest-localstorage-mock',
'<rootDir>/src/sdk/__tests__/_setup/_utils.js',
'<rootDir>/src/sdk/__tests__/_setup/_structuredClone.js',
'<rootDir>/src/sdk/__tests__/_setup/global.d.ts',
],
setupFilesAfterEnv: [
'<rootDir>/src/sdk/__tests__/_setup/_matchers.js'
],
moduleNameMapper: {
"\.(css|scss)$": "<rootDir>/src/sdk/__mocks__/style.js"
},
globals: {
__ADJUST__NAMESPACE: 'adjust-sdk',
__ADJUST__SDK_VERSION: 'TEST'
}
}