Skip to content

Commit 48cef09

Browse files
authored
fix(types): mark deprecated configuration options as @deprecated (#11913)
1 parent ad240ed commit 48cef09

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
### Fixes
66

7+
- `[@jest/types]` Mark deprecated configuration options as `@deprecated` ([#11913](https://github.com/facebook/jest/pull/11913))
8+
79
### Chore & Maintenance
810

911
### Performance

packages/jest-types/src/Config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ export type InitialOptions = Partial<{
196196
onlyFailures: boolean;
197197
outputFile: Path;
198198
passWithNoTests: boolean;
199+
/**
200+
* @deprecated Use `transformIgnorePatterns` options instead.
201+
*/
199202
preprocessorIgnorePatterns: Array<Glob>;
200203
preset: string | null | undefined;
201204
prettierPath: string | null | undefined;
@@ -209,6 +212,9 @@ export type InitialOptions = Partial<{
209212
roots: Array<Path>;
210213
runner: string;
211214
runTestsByPath: boolean;
215+
/**
216+
* @deprecated Use `transform` options instead.
217+
*/
212218
scriptPreprocessor: string;
213219
setupFiles: Array<Path>;
214220
/**
@@ -230,6 +236,9 @@ export type InitialOptions = Partial<{
230236
testLocationInResults: boolean;
231237
testMatch: Array<Glob>;
232238
testNamePattern: string;
239+
/**
240+
* @deprecated Use `roots` options instead.
241+
*/
233242
testPathDirs: Array<Path>;
234243
testPathIgnorePatterns: Array<string>;
235244
testRegex: string | Array<string>;

0 commit comments

Comments
 (0)