From 65e6b2ee9b2115f4e8b25be2d5fedc0b15af5027 Mon Sep 17 00:00:00 2001 From: yinm Date: Fri, 28 Jul 2023 17:57:18 +0900 Subject: [PATCH] fix: add `mts` and `cts` to `moduleFileExtensions` --- packages/jest-config/src/ValidConfig.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/jest-config/src/ValidConfig.ts b/packages/jest-config/src/ValidConfig.ts index 6acf984b41dd..95aa5de0c593 100644 --- a/packages/jest-config/src/ValidConfig.ts +++ b/packages/jest-config/src/ValidConfig.ts @@ -103,6 +103,8 @@ export const initialOptions: Config.InitialOptions = { 'json', 'jsx', 'ts', + 'mts', + 'cts', 'tsx', 'node', ], @@ -258,6 +260,8 @@ export const initialProjectOptions: Config.InitialProjectOptions = { 'json', 'jsx', 'ts', + 'mts', + 'cts', 'tsx', 'node', ],