Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(signals): improve rxMethod tests by using child injectors #4652

Merged

Conversation

rainerhahnekamp
Copy link
Contributor

Refactor the tests for rxMethod to avoid component navigation when testing the behavior of switching injection contexts.

Rename the signalMethod method in the testing service to trackSignal for better readability.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

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

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Refactor the tests for `rxMethod` to avoid component navigation when testing
the behavior of switching injection contexts.

Rename the `signalMethod` method in the testing service to `trackSignal` for
better readability.
Copy link

netlify bot commented Jan 3, 2025

Deploy Preview for ngrx-io canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 734ede9
🔍 Latest deploy log https://app.netlify.com/sites/ngrx-io/deploys/677c1e38f6d489000862c590

Copy link
Member

@timdeschryver timdeschryver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🤩

modules/signals/rxjs-interop/spec/rx-method.spec.ts Outdated Show resolved Hide resolved
@markostanimirovic markostanimirovic merged commit cf62e71 into ngrx:main Jan 9, 2025
11 checks passed
@wasemgamal
Copy link

Excellent 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants