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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important Issue: Replacing
npm ciwithnpm i --package-lock=falseundermines CI reproducibility.npm ciexists precisely to enforce a clean, deterministic install from the lockfile — which is what CI should be doing. Usingnpm i --package-lock=falseinstead means dependencies can silently resolve to different (potentially breaking or vulnerable) versions on each run.The root cause here is that
npm ciwas failing, likely because thepackage-lock.jsonis out of sync withpackage.json, or the lockfile does not exist. The correct fix is to identify and resolve that mismatch rather than bypassing the lockfile altogether.If the intent is to allow installing the latest compatible versions of deps for testing against different React versions, a more explicit and intentional approach would be to document this decision and use a separate
package.jsoninstall step that updates only the peer dependency (React) before runningnpm cion the rest — or to rely on the already-presentnpm ci --no-audit --no-fundin the fixture install step (line 39) which already correctly usesnpm ci.Suggested fix: Investigate why
npm ciwas failing (likely a stale or missingpackage-lock.json) and fix the lockfile rather than bypassing it. If dynamic resolution is truly required for this step, add a comment explaining the rationale.