Skip to content

Ambient types not working in 26.4.2 #2061

@guyellis

Description

@guyellis

💥 Regression Report

Ambient types are not being picked up by ts-jest in 26.4.2

(Edit per comments below: If the ambient types are declared in a .ts file instead of a .d.ts file.)

Last working version

Worked up to version: 26.4.1

Stopped working in version: 26.4.2

To Reproduce

This PR has the errors: guyellis/plant#4180

Expected behavior

Ambient types are picked up.

Link to repo (highly encouraged)

This PR has the errors: guyellis/plant#4180

envinfo

System:
    OS: Ubuntu 20.04

Npm packages:
    jest: 26.6.1
    ts-jest: 26.4.2
    typescript: 4.0.3
    babel(optional): n/a

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions