Skip to content

Conversation

@d10c
Copy link
Contributor

@d10c d10c commented Feb 6, 2026

Copilot CLI runs shell commands with NODE_ENV=production in the environment, which leads to errors when validating its changes against the view tests, because the React.act function (used by @testing-library/react via react-dom/test-utils) is only exported when NODE_ENV != production.

@d10c d10c requested a review from nickrolfe February 6, 2026 12:25
@d10c d10c marked this pull request as ready for review February 6, 2026 12:25
@d10c d10c requested a review from a team as a code owner February 6, 2026 12:25
Copilot AI review requested due to automatic review settings February 6, 2026 12:25

This comment was marked as outdated.

Copilot CLI runs shell commands with `NODE_ENV=production` in the environment,
which leads to errors when validating its changes against the view tests,
because the `React.act` function (used by `@testing-library/react` via
`react-dom/test-utils`) is only exported when `NODE_ENV != production`.
@d10c d10c force-pushed the d10c/fix-react-19-incompat branch from e0745d6 to 8bcdc8a Compare February 9, 2026 12:06
@d10c d10c changed the title Fix React 19 compatibility for @testing-library/react Fix test:view React.act is not a function errors in Copilot CLI Feb 9, 2026
@d10c d10c merged commit f9ef97a into github:main Feb 9, 2026
28 of 29 checks passed
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.

2 participants