Skip to content

Latest @types/jest incompatible #1362

@AndrewLeedham

Description

@AndrewLeedham

Issue :

@types/jest 25.1.0 was released and it is currently incompatible with ts-jest. It moves a lot of the type definitions to the repository itself. A repo I work on depends on @types/jest so after updating it there it caused type errors within ts-jest (https://circleci.com/gh/xeroxinteractive/browserslist-adobe-analytics/152).

Expected behavior :

No errors to be thrown when upgrading.

Debug log:

error log
$ tsc
node_modules/ts-jest/dist/config/create-jest-preset.d.ts:10:93 - error TS2694: Namespace 'jest' has no exported member 'InitialOptions'.

10 export declare function createJestPreset({ allowJs }?: CreateJestPresetOptions, from?: jest.InitialOptions): TsJestPresets;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions