rollup-plugin-typescript2
rollup-plugin-typescript2 copied to clipboard
refactor(test): use more specific checks in `check-tsconfig` spec
trafficstars
Summary
Be more precise with the checks in check-tsconfig.spec.ts and reorder things a bit
check-tsconfig.spec.tsshould now match the structure ofparse-tsconfig.spec.tsfrom #397- Follow-up to #321
Details
-
toBeFalsy()was a bit imprecise and always felt as such, especially sincecheckTsConfigreturnsvoid- so instead check that it doesn't throw, which matches the test intent
-
reorder the tests a bit to match existing test style: non-errors first, then errors
- and separating into two different test blocks parallelizes them as well
-
also add an ES2020 check as well
- follow-up to eb1dd17babde0b22e9540b12e671eb56d9d6bce0 and #376