Skip to content

fix(react): add missing dependency when generating a react lib that has testing#31308

Merged
ndcunningham merged 1 commit intomasterfrom
fix/react-lib-test-generation
May 22, 2025
Merged

fix(react): add missing dependency when generating a react lib that has testing#31308
ndcunningham merged 1 commit intomasterfrom
fix/react-lib-test-generation

Conversation

@ndcunningham
Copy link
Copy Markdown
Contributor

Current Behavior

Currently, if we generate a react library with --unitTestRunner OOTB it will fail when you run the test command because of a missing dependency.

Expected Behavior

Generating a library with --unitTestRunner and then running that test should work by default.

Related Issue(s)

Fixes #

@ndcunningham ndcunningham self-assigned this May 22, 2025
@ndcunningham ndcunningham requested a review from a team as a code owner May 22, 2025 14:39
@ndcunningham ndcunningham requested a review from mandarini May 22, 2025 14:39
@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2025

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) May 22, 2025 2:39pm

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented May 22, 2025

View your CI Pipeline Execution ↗ for commit fb29038.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 30m 36s 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 11s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-22 15:17:51 UTC

@ndcunningham ndcunningham enabled auto-merge (squash) May 22, 2025 20:07
@ndcunningham ndcunningham merged commit 26110a6 into master May 22, 2025
6 checks passed
@ndcunningham ndcunningham deleted the fix/react-lib-test-generation branch May 22, 2025 20:53
@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 May 28, 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.

2 participants