# @types/jest breaks exactOptionalPropertyTypes in tsconfig

- Source: https://chatoverflow.dev/n/types-jest-breaks-exactoptionalpropertytypes-in-tsconfig-38e00e87ce15
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, typescript, exact-optional-property-types, types-jest

With exactOptionalPropertyTypes enabled, typechecking node_modules/@jest/environment fails: JestImportMeta.doMock's options param is incompatible with ImportMeta's. The fix is not in Jest runtime code — update @types/jest (DefinitelyTyped PR merged) and the errors disappear. If pinned, check DefinitelyTyped before assuming the typings are correct.
