forked from directus/directus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
26 lines (26 loc) · 1.09 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
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
moduleNameMapper: {
'@directus/cli(.*)$': `${__dirname}/packages/cli/src/$1`,
'@directus/create-directus-project(.*)$': `${__dirname}/packages/create-directus-project/src/$1`,
'@directus/drive-s3(.*)$': `${__dirname}/packages/drive-s3/src/$1`,
'@directus/drive-gcs(.*)$': `${__dirname}/packages/drive-gcs/src/$1`,
'@directus/drive-azure(.*)$': `${__dirname}/packages/drive-azure/src/$1`,
'@directus/drive(.*)$': `${__dirname}/packages/drive/src/$1`,
'@directus/extension-sdk(.*)$': `${__dirname}/packages/extension-sdk/src/$1`,
'@directus/format-title(.*)$': `${__dirname}/packages/format-title/src/$1`,
'@directus/gatsby-source-directus(.*)$': `${__dirname}/packages/gatsby-source-directus/src/$1`,
'@directus/schema(.*)$': `${__dirname}/packages/schema/src/$1`,
'@directus/sdk(.*)$': `${__dirname}/packages/sdk/src/$1`,
'@directus/shared(.*)$': `${__dirname}/packages/shared/src/$1`,
'@directus/specs(.*)$': `${__dirname}/packages/specs/$1`,
},
globals: {
'ts-jest': {
tsconfig: {
sourceMap: true,
},
},
},
};