Fix CI failures: Vite/Node 18 incompatibility, ReactDOMTestUtils.act filter, getUserMedia guard, defaultProps deprecation#25
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: GizzZmo <8039975+GizzZmo@users.noreply.github.com> Agent-Logs-Url: https://github.com/GizzZmo/CoreTex/sessions/3c553545-1518-4546-b109-e903f45e42db
…, defaultProps deprecation Co-authored-by: GizzZmo <8039975+GizzZmo@users.noreply.github.com> Agent-Logs-Url: https://github.com/GizzZmo/CoreTex/sessions/3c553545-1518-4546-b109-e903f45e42db
Copilot
AI
changed the title
[WIP] Fix YAML file loading error in translation configuration
Fix CI failures: Vite/Node 18 incompatibility, ReactDOMTestUtils.act filter, getUserMedia guard, defaultProps deprecation
Mar 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI was failing with 6 test failures on Node 18 due to Vite 7.x requiring Node 20.19+, plus several React deprecation warnings leaking into test output.
Changes
.github/workflows/ci.yml: Drop Node 18.x from the test matrix; add 22.x. Vite 7 hard-requires Node 20.19+ or 22.12+, making everybuild.test.jsrun on Node 18 fail atexecSync('npm run build').jest.setup.js: Fix theReactDOMTestUtils.actsuppression filter. React's actual warning wraps the name in backticks (`ReactDOMTestUtils.act` is deprecated), so the originalincludes('ReactDOMTestUtils.act is deprecated')never matched.src/components/FaceRecognition.jsx: GuardgetUserMediacall againstnavigator.mediaDevicesbeingundefined(jsdom, non-secure contexts):src/components/Dashboard.jsx: ReplaceDashboard.defaultPropson amemocomponent with a default function parameter (lastReport = null), removing the React 18 warning aboutdefaultPropsdeprecation on memo components.Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.