Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest @types/jest incompatible #1362

Closed
AndrewLeedham opened this issue Jan 28, 2020 · 0 comments · Fixed by #1363
Closed

Latest @types/jest incompatible #1362

AndrewLeedham opened this issue Jan 28, 2020 · 0 comments · Fixed by #1363

Comments

@AndrewLeedham
Copy link
Contributor

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant