Skip to content

test: Make compile test more sane#1108

Merged
valarnin merged 1 commit into
OverlayPlugin:mainfrom
valarnin:fix-compile-test
Jul 9, 2026
Merged

test: Make compile test more sane#1108
valarnin merged 1 commit into
OverlayPlugin:mainfrom
valarnin:fix-compile-test

Conversation

@valarnin

@valarnin valarnin commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

npm@11.18.0 and npm@12.0.0 include a breaking change (for us) which causes npx <foo> to print the remapped node command out to stderr, which triggers the error logic that was originally written for this test.

Instead of treating anything printed to stderr, capture the exit code of the subprocess and treat a non-zero exit code as an error.

@github-actions github-actions Bot added test /test, /ui/test needs-review Awaiting review labels Jul 9, 2026
@github-actions github-actions Bot removed the needs-review Awaiting review label Jul 9, 2026
@valarnin valarnin merged commit c9b05b3 into OverlayPlugin:main Jul 9, 2026
13 of 14 checks passed
github-actions Bot pushed a commit that referenced this pull request Jul 9, 2026
`npm@11.18.0` and `npm@12.0.0` include a breaking change (for us) which
causes `npx <foo>` to print the remapped node command out to stderr,
which triggers the error logic that was originally written for this
test.

Instead of treating anything printed to stderr, capture the exit code of
the subprocess and treat a non-zero exit code as an error. c9b05b3
github-actions Bot pushed a commit to ShadyWhite/cactbot that referenced this pull request Jul 9, 2026
`npm@11.18.0` and `npm@12.0.0` include a breaking change (for us) which
causes `npx <foo>` to print the remapped node command out to stderr,
which triggers the error logic that was originally written for this
test.

Instead of treating anything printed to stderr, capture the exit code of
the subprocess and treat a non-zero exit code as an error. c9b05b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test /test, /ui/test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants