Skip to content

Commit

Permalink
Name default Jest project according to used env variables (vercel#74084)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Dec 18, 2024
1 parent 9332370 commit 764f885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: ['<rootDir>/jest-setup-after-env.ts'],
verbose: true,
Expand Down

0 comments on commit 764f885

Please sign in to comment.