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"]