From 556ab608c513f5ecf173e8b10ac7b61be97234b5 Mon Sep 17 00:00:00 2001 From: Yury Shkoda Date: Mon, 31 Jan 2022 10:20:53 +0300 Subject: [PATCH] chore(jest-extended): fix jest-extended import --- jest.config.js | 2 +- src/types/system/global.d.ts | 1 + tsconfig.json | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 src/types/system/global.d.ts diff --git a/jest.config.js b/jest.config.js index e7b572e..6a81100 100644 --- a/jest.config.js +++ b/jest.config.js @@ -127,7 +127,7 @@ module.exports = { setupFiles: [], // A list of paths to modules that run some code to configure or set up the testing framework before each test - setupFilesAfterEnv: ['jest-extended'], + setupFilesAfterEnv: ['jest-extended/all'], // A list of paths to snapshot serializer modules Jest should use for snapshot testing // snapshotSerializers: [], diff --git a/src/types/system/global.d.ts b/src/types/system/global.d.ts new file mode 100644 index 0000000..b68ae07 --- /dev/null +++ b/src/types/system/global.d.ts @@ -0,0 +1 @@ +import 'jest-extended' diff --git a/tsconfig.json b/tsconfig.json index 36161db..fee90bb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,8 @@ "declaration": true, "outDir": "./build", "strict": true, - "sourceMap": true + "sourceMap": true, + "typeRoots": ["./node_modules/@types", "./src/types/system"] }, "include": ["src"], "exclude": ["node_modules"]