forked from Ajaxy/telegram-tt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
24 lines (24 loc) · 729 Bytes
/
jest.config.js
File metadata and controls
24 lines (24 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export default {
setupFilesAfterEnv: ['./tests/init.js'],
moduleNameMapper: {
'\\.(css|scss|wasm|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|tgs)$':
'<rootDir>/tests/staticFileMock.js',
'^@teact$': '<rootDir>/src/lib/teact/teact.ts',
'^@teact/(.*)$': '<rootDir>/src/lib/teact/$1',
},
testPathIgnorePatterns: [
'<rootDir>/tests/playwright/',
'<rootDir>/node_modules/',
'<rootDir>/legacy_notes_and_workbook/',
'<rootDir>/client/src/stylesheets/',
],
testEnvironment: 'jsdom',
transform: {
'\\.(jsx?|tsx?)$': 'babel-jest',
'\\.txt$': '@glen/jest-raw-loader',
},
globals: {
APP_REVISION: 'jest-test',
APP_VERSION: '0.0.1',
},
};