Closed huozhi closed 2 years ago
It seems like not syntax error, it's typecheck error
Thanks for correction, yeah it's type checking part, updated the description
Yes, swc doesn't support typecheck for now
Sounds good, we can cover it by tsc itself. Thanks!
Hi, awesome project!
Description
I'm trying to adopt
@swc-node/jest
to replacets-jest
in our project but found the jest transform phase won't report any syntaxes error if the test cases written in ts have any.Reproduction
create a empty folder and run
Add
jest.config.js
Create a simple jest test case
index.test.ts
in wrong ts syntaxRun it
yarn jest index.test.ts
Expected
It should display type checking errors
Observed
Only passed without any type checking errors reported
Though ts-jest can cover the type checking but I'm not sure if the type checking is not included here for speed or it's sth missed in swc. Feel free to close if it's not the issue of this project. Thanks!