From 283de8ff0b062e4589f85c688d59ec7cd766ca22 Mon Sep 17 00:00:00 2001 From: Jaakko Lappalainen Date: Fri, 20 May 2022 11:45:51 +0000 Subject: [PATCH] chore: throw error when setting testSequencer as project config --- packages/jest-config/src/normalize.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/jest-config/src/normalize.ts b/packages/jest-config/src/normalize.ts index e54011a8752a..8558e4ef1c94 100644 --- a/packages/jest-config/src/normalize.ts +++ b/packages/jest-config/src/normalize.ts @@ -586,6 +586,12 @@ export default async function normalize( } } + if (options.testSequencer) { + throw createConfigError( + ` Configuration option ${chalk.bold('testSequencer')} should be a global config, not per-project.`, + ); + } + if (!options.coverageDirectory) { options.coverageDirectory = path.resolve(options.rootDir, 'coverage'); }