diff --git a/CHANGELOG.md b/CHANGELOG.md index e21cf3506a11..dba0f8a2a511 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ ### Fixes +- `[@jest/types]` Mark deprecated configuration options as `@deprecated` ([#11913](https://github.com/facebook/jest/pull/11913)) + ### Chore & Maintenance ### Performance diff --git a/packages/jest-types/src/Config.ts b/packages/jest-types/src/Config.ts index 2108342c9383..d94e4296b5f5 100644 --- a/packages/jest-types/src/Config.ts +++ b/packages/jest-types/src/Config.ts @@ -196,6 +196,9 @@ export type InitialOptions = Partial<{ onlyFailures: boolean; outputFile: Path; passWithNoTests: boolean; + /** + * @deprecated Use `transformIgnorePatterns` options instead. + */ preprocessorIgnorePatterns: Array; preset: string | null | undefined; prettierPath: string | null | undefined; @@ -209,6 +212,9 @@ export type InitialOptions = Partial<{ roots: Array; runner: string; runTestsByPath: boolean; + /** + * @deprecated Use `transform` options instead. + */ scriptPreprocessor: string; setupFiles: Array; /** @@ -230,6 +236,9 @@ export type InitialOptions = Partial<{ testLocationInResults: boolean; testMatch: Array; testNamePattern: string; + /** + * @deprecated Use `roots` options instead. + */ testPathDirs: Array; testPathIgnorePatterns: Array; testRegex: string | Array;