jest-runner-tsc icon indicating copy to clipboard operation
jest-runner-tsc copied to clipboard

What's the point?

Open anilanar opened this issue 6 years ago • 4 comments

This runner uses transpileModule function from Typescript compiler API which does not type check. If so, what's the point of jest-runner-tsc?

anilanar avatar May 02 '19 16:05 anilanar

I agree w/ @anilanar; our team will probably move to simply using tsc --noEmit directly for type-checking test.

See https://github.com/Microsoft/TypeScript/issues/4864 for TypeScript team's rationale on why transpileModule doesn't report semantic errors.

Probably overkill, but I made a simple TS to repro this and collect links to some issues: https://github.com/christopherscott/jest-runner-tsc-transpile-module

christopherscott avatar May 03 '19 19:05 christopherscott

It's a bug, this was a regression because of https://github.com/azz/jest-runner-tsc/pull/14. We're still looking for a solution.

azz avatar May 04 '19 02:05 azz

Going to revert that for now.

azz avatar May 04 '19 02:05 azz

I guess jest runner is not a good solution for project-wide lints/compiles/analysis. We should create an alternative runner that can also run jest, that supports watch mode and prints in a nice visual way with parallelism.

anilanar avatar May 04 '19 02:05 anilanar