Skip to content

fix(angular): generate ngrx facade spec file correctly#31850

Merged
FrozenPandaz merged 1 commit into
masterfrom
angular/fix-ngrx-facade-tests
Jul 10, 2025
Merged

fix(angular): generate ngrx facade spec file correctly#31850
FrozenPandaz merged 1 commit into
masterfrom
angular/fix-ngrx-facade-tests

Conversation

@leosvelperez
Copy link
Copy Markdown
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
@vercel
Copy link
Copy Markdown

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

@nx-cloud
Copy link
Copy Markdown
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)
@github-actions
Copy link
Copy Markdown
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants