Skip to content

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

Merged
ezolenko merged 1 commit intoezolenko:masterfrom
agilgur5:test-100-tslib-error
Aug 19, 2022
Merged

test: 100% coverage for tslib.ts (error case)#399
ezolenko merged 1 commit intoezolenko:masterfrom
agilgur5:test-100-tslib-error

Conversation

@agilgur5
Copy link
Copy Markdown
Collaborator

Summary

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

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

- 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 agilgur5 added kind: internal Changes only affect the internals, and _not_ the public API or external-facing docs scope: tests Tests could be improved. Or changes that only affect tests labels Jul 23, 2022
@ezolenko ezolenko merged commit 4e5ab74 into ezolenko:master Aug 19, 2022
@agilgur5 agilgur5 deleted the test-100-tslib-error branch July 2, 2023 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: internal Changes only affect the internals, and _not_ the public API or external-facing docs scope: tests Tests could be improved. Or changes that only affect tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants