From 764f88514008e33d768608539b4ace0991d2a1b2 Mon Sep 17 00:00:00 2001 From: "Sebastian \"Sebbie\" Silbermann" Date: Wed, 18 Dec 2024 19:31:42 +0100 Subject: [PATCH] Name default Jest project according to used env variables (#74084) --- jest.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index 4efff92a76955..cf47e8b8b9276 100644 --- a/jest.config.js +++ b/jest.config.js @@ -5,7 +5,7 @@ const createJestConfig = nextJest() // Any custom config you want to pass to Jest /** @type {import('jest').Config} */ const customJestConfig = { - displayName: 'default', + displayName: process.env.TURBOPACK ? 'turbopack' : 'default', testMatch: ['**/*.test.js', '**/*.test.ts', '**/*.test.jsx', '**/*.test.tsx'], setupFilesAfterEnv: ['/jest-setup-after-env.ts'], verbose: true,