From 48cef098d2598b3644c7bb13ea16b77638ebc1e5 Mon Sep 17 00:00:00 2001 From: mrazauskas <72159681+mrazauskas@users.noreply.github.com> Date: Thu, 30 Sep 2021 11:30:22 +0300 Subject: [PATCH] fix(types): mark deprecated configuration options as `@deprecated` (#11913) --- CHANGELOG.md | 2 ++ packages/jest-types/src/Config.ts | 9 +++++++++ 2 files changed, 11 insertions(+) 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;