Skip to content

ts-jest@27.0.0-next.7 bundles wrong typesย #2406

@PSeitz

Description

@PSeitz

๐Ÿ› Bug Report

jest bundles @types/jest@26.0.20. These types assume that jasmine is the default test runner, but with jest 27, the default test runner is jest-circus which doesn't have the same methods.

npm ls

โ”œโ”€โ”ฌ ts-jest@27.0.0-next.7
โ”‚ โ”œโ”€โ”ฌ @types/jest@26.0.20

To Reproduce

Install ts-jest@27.0.0-next.7 and jest 27, use the global fail method. it will compile because of the jest types, but fail during run time.

envinfo

System:
    OS: MacOs
    Node version: 10.15

Npm packages:
    jest: 27.0.0-next.3
    ts-jest: 27.0.0-next.7
    typescript: 4.0.2

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      โšก