You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PASS src/blo.test.ts
blo
✓ should work (1 ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 2.75 s
Ran all test suites.
Actual behavior
FAIL src/blo.test.ts
● Test suite failed to run
src/tsts.js:1:19 - error TS7006: Parameter 't' implicitly has an 'any' type.
1 const someFunc = (t) => t;
~
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 2.712 s
Ran all test suites.
Version
29.1.2
Steps to reproduce
To be honest, I am not sure where to start searching for that bug, it's so strange. So I'm starting here with
ts-jest
, as a best guess 🤷tsts.js
file exporting a functionsomeFunc
:and its corresponding types
tsts.d.ts
:blo.ts
which imports the function fromtsts
and uses it :Create a test that uses :
Expected behavior
I expect the test to run and output :
Actual behavior
Debug log
ts-jest.log
Additional context
Now's the interesting part : if I rename (and update imports) :
Everything works as expected.
On the other hand, I get the same bug if I rename like so :
Environment
Full project to reproduce the bug
full-project-reproduce-bug.zip
The text was updated successfully, but these errors were encountered: