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
@ValeryLosik there is something wrong with your development environment if you are not getting an error with that. Also tests cannot run type checks since there are no types in the compiled code. TypeScript type checks are run on compile time. Also if you have an IDE that supports TypeScript you will get error messages while you are typing.
Correct me if I am wrong, ts-jest as far as I can tell simply is a connector for jest and TypeScript so you can test your compiled code more easily. I don't believe any testing framework can check the types from the compiled code.
ts-jest is meant to handle only the 'testing with jest' part and nothing else. Type errors are typically handle by the IDE and/or the build/live reload process.
I haven't tried this but it might be possible to do what you want by setting the noEmitOnError flag.
Anyway, closing as this falls outside the scope of this project
No typechecking during running tests
Expect to get typechecking errors inside tests.
Repo is creating based on create-react-app with typescript
In component there is a not valid assignment,however tests are passing successfully.
The text was updated successfully, but these errors were encountered: