Skip to content

Commit

Permalink
chore: throw error when setting testSequencer as project config
Browse files Browse the repository at this point in the history
  • Loading branch information
jkklapp committed May 20, 2022
1 parent a841a74 commit 283de8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/jest-config/src/normalize.ts
Expand Up @@ -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');
}
Expand Down

0 comments on commit 283de8f

Please sign in to comment.