From 3a0807f7ea93a807752bfbdaf15f81ee30c8a3d4 Mon Sep 17 00:00:00 2001 From: hagevvashi Date: Wed, 15 Sep 2021 02:14:15 +0900 Subject: [PATCH] fix: dts-jest error on TypeScript v4.4 --- jest.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jest.config.ts b/jest.config.ts index c523aee..6d1fbca 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,3 +1,4 @@ +import path from "path"; import type { Config } from "@jest/types"; const config: Config.InitialOptions = { @@ -17,7 +18,7 @@ const config: Config.InitialOptions = { transformIgnorePatterns: ["/node_modules/"], globals: { _dts_jest_: { - compiler_options: "./tsconfig.json", + compiler_options: path.resolve(__dirname, "./tsconfig.json"), transpile: false, }, },