forked from meilisearch/meilisearch-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
35 lines (34 loc) · 847 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
const config = {
rootDir: '.',
testMatch: ['<rootDir>/tests/**/*.ts?(x)'],
testPathIgnorePatterns: ['meilisearch-test-utils', 'env'],
coverageThreshold: {
global: {
'ts-jest': {
tsConfig: '<rootDir>/tsconfig.json',
},
},
},
setupFiles: [],
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
projects: [
{
preset: 'ts-jest',
displayName: 'dom',
testEnvironment: 'jsdom',
testMatch: ['<rootDir>/tests/**/*.ts?(x)'],
testPathIgnorePatterns: ['meilisearch-test-utils', 'env/'],
},
{
preset: 'ts-jest',
displayName: 'node',
testEnvironment: 'node',
testMatch: ['<rootDir>/tests/**/*.ts?(x)'],
testPathIgnorePatterns: ['meilisearch-test-utils', 'env/'],
},
],
}
module.exports = config