forked from Nozbe/WatermelonDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
32 lines (32 loc) · 1.29 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
module.exports = {
verbose: true,
bail: true,
testURL: 'http://localhost/',
moduleNameMapper: {
'^rxjs$': '<rootDir>/node_modules/rxjs/internal',
'^rxjs/(.*)$': '<rootDir>/node_modules/rxjs/internal/$1',
'^adapters/(.*)$': '<rootDir>/src/adapters/$1',
'^decorators$': '<rootDir>/src/decorators',
'^decorators/(.*)$': '<rootDir>/src/decorators/$1',
'^utils/(.*)$': '<rootDir>/src/utils/$1',
'^observation/(.*)$': '<rootDir>/src/observation/$1',
'^Model$': '<rootDir>/src/Model',
'^Collection$': '<rootDir>/src/Collection',
'^Database$': '<rootDir>/src/Database',
'^Database/(.*)$': '<rootDir>/src/Database/$1',
'^Query$': '<rootDir>/src/Query',
'^QueryDescription$': '<rootDir>/src/QueryDescription',
'^RawRecord$': '<rootDir>/src/RawRecord',
'^Relation$': '<rootDir>/src/Relation',
'^Schema$': '<rootDir>/src/Schema',
'^__tests__/(.*)$': '<rootDir>/src/__tests__/$1',
},
setupTestFrameworkScriptFile: '<rootDir>/src/__tests__/setup.js',
rootDir: __dirname,
modulePaths: ['<rootDir>/src'],
moduleDirectories: ['<rootDir>/node_modules'],
restoreMocks: true,
testMatch: ['**/__tests__/**/?(spec|test).js', '**/?(*.)(spec|test).js'],
moduleFileExtensions: ['js'],
modulePathIgnorePatterns: ['<rootDir>/dist', '<rootDir>/dev'],
}