From 466250f655f4335fd6495b7ef71b22ecdf52163a Mon Sep 17 00:00:00 2001 From: Kurt von Laven Date: Mon, 11 Sep 2023 14:10:37 -0700 Subject: [PATCH] test(jest.config): Treat `*.ts` files as ESM Jest began recommending use of this setting in TypeScript ESM projects when it was introduced in v27. --- jest.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/jest.config.ts b/jest.config.ts index 0c7292eb..62dfdb20 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -12,6 +12,7 @@ const config: JestConfigWithTsJest = { statements: 100, }, }, + extensionsToTreatAsEsm: [".ts"], moduleFileExtensions: ["ts", "js"], resetMocks: true, rootDir: "src",