Skip to content

Commit

Permalink
fix(types): mark deprecated configuration options as @deprecated (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Sep 30, 2021
1 parent ad240ed commit 48cef09
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,8 @@

### Fixes

- `[@jest/types]` Mark deprecated configuration options as `@deprecated` ([#11913](https://github.com/facebook/jest/pull/11913))

### Chore & Maintenance

### Performance
Expand Down
9 changes: 9 additions & 0 deletions packages/jest-types/src/Config.ts
Expand Up @@ -196,6 +196,9 @@ export type InitialOptions = Partial<{
onlyFailures: boolean;
outputFile: Path;
passWithNoTests: boolean;
/**
* @deprecated Use `transformIgnorePatterns` options instead.
*/
preprocessorIgnorePatterns: Array<Glob>;
preset: string | null | undefined;
prettierPath: string | null | undefined;
Expand All @@ -209,6 +212,9 @@ export type InitialOptions = Partial<{
roots: Array<Path>;
runner: string;
runTestsByPath: boolean;
/**
* @deprecated Use `transform` options instead.
*/
scriptPreprocessor: string;
setupFiles: Array<Path>;
/**
Expand All @@ -230,6 +236,9 @@ export type InitialOptions = Partial<{
testLocationInResults: boolean;
testMatch: Array<Glob>;
testNamePattern: string;
/**
* @deprecated Use `roots` options instead.
*/
testPathDirs: Array<Path>;
testPathIgnorePatterns: Array<string>;
testRegex: string | Array<string>;
Expand Down

0 comments on commit 48cef09

Please sign in to comment.