diff --git a/CHANGELOG.md b/CHANGELOG.md index 970b77c44bef..b727c351c0a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -75,6 +75,7 @@ - `[@jest/expect-utils]` Fix not addressing to Sets and Maps as objects without keys ([#14873](https://github.com/jestjs/jest/pull/14873)) - `[jest-leak-detector]` Make leak-detector more aggressive when running GC ([#14526](https://github.com/jestjs/jest/pull/14526)) - `[jest-runtime]` Properly handle re-exported native modules in ESM via CJS ([#14589](https://github.com/jestjs/jest/pull/14589)) +- `[jest-schemas, jest-types]` [**BREAKING**] Fix type of `testFailureExitCode` config option([#15232](https://github.com/jestjs/jest/pull/15232)) - `[jest-util]` Make sure `isInteractive` works in a browser ([#14552](https://github.com/jestjs/jest/pull/14552)) - `[pretty-format]` [**BREAKING**] Print `ArrayBuffer` and `DataView` correctly ([#14290](https://github.com/jestjs/jest/pull/14290)) - `[pretty-format]` Fixed a bug where "anonymous custom elements" were not being printed as expected. ([#15138](https://github.com/jestjs/jest/pull/15138)) diff --git a/packages/jest-schemas/src/raw-types.ts b/packages/jest-schemas/src/raw-types.ts index f340582fc106..be58048ff0f8 100644 --- a/packages/jest-schemas/src/raw-types.ts +++ b/packages/jest-schemas/src/raw-types.ts @@ -321,7 +321,7 @@ export const RawInitialOptions = Type.Partial( errorOnDeprecated: Type.Boolean(), testEnvironment: Type.String(), testEnvironmentOptions: Type.Record(Type.String(), Type.Unknown()), - testFailureExitCode: Type.Union([Type.String(), Type.Integer()]), + testFailureExitCode: Type.Integer(), testLocationInResults: Type.Boolean(), testMatch: Type.Array(Type.String()), testNamePattern: Type.String(), diff --git a/packages/jest-types/src/Config.ts b/packages/jest-types/src/Config.ts index f4ff9f9ab3db..debea999ed27 100644 --- a/packages/jest-types/src/Config.ts +++ b/packages/jest-types/src/Config.ts @@ -198,7 +198,7 @@ export type DefaultOptions = { snapshotSerializers: Array; testEnvironment: string; testEnvironmentOptions: Record; - testFailureExitCode: string | number; + testFailureExitCode: number; testLocationInResults: boolean; testMatch: Array; testPathIgnorePatterns: Array;