diff --git a/jest.config.ts b/jest.config.ts index d34b58e9..bf908016 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -8,6 +8,10 @@ const jestConfig: Config = { transform: { "^.+\\.(t|j)sx?$": "@swc/jest", }, + // resolve js files from ts files + moduleNameMapper: { + "(.+)\\.js": "$1", + }, // coverage collectCoverageFrom: ["src/**/*.{ts,tsx,js,jsx}"], coveragePathIgnorePatterns: ["assets", ".css.d.ts"],