christopherscott / jest-runner-tsc-transpile-module

Bug fix repro for https://github.com/azz/jest-runner-tsc/issues/15

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jest-runner-tsc-transpile-module

Reproducing an issue where recent PR to jest-runner-tsc caused it to stop type-checking files.

To repro:

yarn
yarn test

Expect: jest fails with TSC type error on index.ts file

Actual: jest passes

Relevant issues:

  • original issue (builds are slow) azz/jest-runner-tsc#5
  • PR for the fix: azz/jest-runner-tsc#14
  • What's the point? azz/jest-runner-tsc#15
    • user points out that the fix actually stops reporting type errors (becuase it uses method transpileModule)
  • transpileModule() does not generate diagnostics microsoft/TypeScript#4864
    • old issue where TypeScript team is responding to users who expect transpileModule() to report diagnostics, they explain why it's not feasible

About

Bug fix repro for https://github.com/azz/jest-runner-tsc/issues/15


Languages

Language:JavaScript 71.6%Language:TypeScript 28.4%