sinonjs / sinon

Test spies, stubs and mocks for JavaScript.
https://sinonjs.org/
Other
9.6k stars 769 forks source link

Showcase #replace.usingAccessor for DI in the typescript case study #2556

Closed fatso83 closed 8 months ago

fatso83 commented 8 months ago

Purpose (TL;DR) - mandatory

This adds how you can improve upon the manual DI situation using the new replace

codecov[bot] commented 8 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (main@c47a4be). Click here to learn what that means.

:exclamation: Current head 5028354 differs from pull request most recent head 2692674. Consider uploading reports for the commit 2692674 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2556 +/- ## ======================================= Coverage ? 96.03% ======================================= Files ? 40 Lines ? 1916 Branches ? 0 ======================================= Hits ? 1840 Misses ? 76 Partials ? 0 ``` | [Flag](https://app.codecov.io/gh/sinonjs/sinon/pull/2556/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sinonjs) | Coverage Δ | | |---|---|---| | [unit](https://app.codecov.io/gh/sinonjs/sinon/pull/2556/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sinonjs) | `96.03% <ø> (?)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sinonjs#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.