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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts-jest conceals TypeScript error in jest's watch mode #2525

Closed
fischeversenker opened this issue Apr 15, 2021 · 2 comments
Closed

ts-jest conceals TypeScript error in jest's watch mode #2525

fischeversenker opened this issue Apr 15, 2021 · 2 comments
Labels
馃悰 Bug Confirmed Bug is confirmed

Comments

@fischeversenker
Copy link

fischeversenker commented Apr 15, 2021

馃悰 Bug Report

Watch mode in combination with ts-jest let's test suites pass regardless of TypeScript errors in the spec file.

To Reproduce

Please see the repository that I provided below and follow the reproduction steps in its README.

Expected behavior

Watch mode should not miraculously turn failing tests into passing tests.

Link to repl or repo (highly encouraged)

https://github.com/fischeversenker/ts-jest-error-repro

Debug log:

The debug log was too long to fit in a GitHub comment so I added it to the reproduction repository: ts-jest.log

envinfo

System:
    OS: Linux 4.19 Ubuntu 20.04.1 (WSL 2 on Windows 10)
    Node version: 14.15.4

Npm packages:
    jest: 26.6.3
    ts-jest: 26.5.4
    typescript: 4.2.4
@ahnpnl
Copy link
Collaborator

ahnpnl commented Apr 15, 2021

duplicate with #943 which was fixed under next tag. You can try it out.

@ahnpnl ahnpnl closed this as completed Apr 15, 2021
@ahnpnl ahnpnl added 馃悰 Bug Confirmed Bug is confirmed and removed Bug Report Needs Repo Need a minimium repository to reproduce the problem Needs Triage labels Apr 15, 2021
@fischeversenker
Copy link
Author

Thanks for the info.
I can confirm that this bug is indeed fixed with ts-jest@27.0.0-next.10 (in combination with jest@27.0.0-next.8) 馃帀 馃檹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悰 Bug Confirmed Bug is confirmed
Projects
None yet
Development

No branches or pull requests

2 participants