rollup-plugin-typescript2 icon indicating copy to clipboard operation
rollup-plugin-typescript2 copied to clipboard

test: 100% coverage for `tslib.ts` (error case)

Open agilgur5 opened this issue 3 years ago • 0 comments
trafficstars

Summary

Get to 100% coverage of tslib.ts by adding a check for error case

  • Follow-up to #321

Details

  • use Jest's module mocks to test the error case of tslib.ts when tslib fails to import
    • this took a bit of work to figure out bc, per the in-line comments, the ordering and module subpath were both required
      • it was pretty confusing for a while until I realized what might be going wrong

agilgur5 avatar Jul 23 '22 16:07 agilgur5