Skip to content

kevinsimper/jest-ts-jest-import-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Problem with ts-jest - typings not updated

Reported here: kulshekhar/ts-jest#1122 (comment) kulshekhar/ts-jest#943 (comment)

Steps to reproduce:

  • run jest with watch $ npm test -- --watch
  • go into src/add.test.ts and edit the import from add1 to add2 in both import and where the function is used
  • see the error:
 FAIL  src/add.test.ts
 ● Test suite failed to run

 src/add.test.ts:1:10 - error TS2305: Module '"./add"' has no exported member 'add2'.

1 import { add2 } from "./add";
  • go into ./add and fix the function to be called add2.
  • see that the jest runner still say the same error
  • restart the runner and see it works now

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published