platform icon indicating copy to clipboard operation
platform copied to clipboard

feat(component-store): add a testing library

Open BobobUnicorn opened this issue 2 years ago • 1 comments

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x] The commit message follows our guidelines: https://github.com/ngrx/platform/blob/master/CONTRIBUTING.md#commit
  • [x] Tests for the changes have been added (for bug fixes / features)
  • [ ] Documentation has been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

There is no simple unified way that NgRx provides to mock a ComponentStore; this adds a mocking library with a simple API to facilitate writing tests for components that use the ComponentStore.

Closes #2767.

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

BobobUnicorn avatar Nov 03 '22 19:11 BobobUnicorn

Deploy Preview for ngrx-io ready!

Built without sensitive environment variables

Name Link
Latest commit 6c3985c2f677d9fe2883bf64ed4546c5796a020f
Latest deploy log https://app.netlify.com/sites/ngrx-io/deploys/636410d49e89c10008357b13
Deploy Preview https://deploy-preview-3646--ngrx-io.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Nov 03 '22 19:11 netlify[bot]

I will close this PR as it has not been updated for a long time.

markostanimirovic avatar Jul 22 '24 20:07 markostanimirovic