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