Skip to content

Conversation

leosvelperez
Copy link
Member

Current Behavior

When generating a facade with the NgRx generators, the spec file imports a non-existent readFirst from @nx/angular/testing. That helper was deprecated for a long time and removed in Nx v21, but this usage was missed, causing those tests to fail.

The e2e tests that cover this were disabled for the pnpm package manager, so it was not caught in the PR/main CI pipeline. It was correctly failing in the Nightly CI pipeline. The tests are now enabled for all package managers.

Nightly failure: https://staging.nx.app/runs/uRlR20Fzt9/task/e2e-angular%3Ae2e-local

Expected Behavior

When generating a facade with the NgRx generators, the spec file for the facade should be correct.

Related Issue(s)

Fixes #

@leosvelperez leosvelperez requested a review from Coly010 July 8, 2025 09:01
@leosvelperez leosvelperez self-assigned this Jul 8, 2025
@leosvelperez leosvelperez requested a review from a team as a code owner July 8, 2025 09:01
Copy link

vercel bot commented Jul 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Jul 8, 2025 9:06am
Copy link
Contributor

nx-cloud bot commented Jul 8, 2025

View your CI Pipeline Execution ↗ for commit 293c349

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 22m 22s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 16s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 3s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 2s View ↗
nx documentation ✅ Succeeded 2m 5s View ↗

☁️ Nx Cloud last updated this comment at 2025-07-08 09:30:31 UTC

@FrozenPandaz FrozenPandaz merged commit b8f1390 into master Jul 10, 2025
8 checks passed
@FrozenPandaz FrozenPandaz deleted the angular/fix-ngrx-facade-tests branch July 10, 2025 15:13
FrozenPandaz pushed a commit that referenced this pull request Jul 11, 2025
## Current Behavior

When generating a facade with the NgRx generators, the spec file imports
a non-existent `readFirst` from `@nx/angular/testing`. That helper was
deprecated for a long time and removed in Nx v21, but this usage was
missed, causing those tests to fail.

The e2e tests that cover this were disabled for the pnpm package
manager, so it was not caught in the PR/main CI pipeline. It was
correctly failing in the Nightly CI pipeline. The tests are now enabled
for all package managers.

Nightly failure:
https://staging.nx.app/runs/uRlR20Fzt9/task/e2e-angular%3Ae2e-local

## Expected Behavior

When generating a facade with the NgRx generators, the spec file for the
facade should be correct.

## Related Issue(s)

Fixes #

(cherry picked from commit b8f1390)
Copy link
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants