Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve debug message when json parsing fails in e2e tests #376

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Nov 29, 2024

stylelint's e2e tests started failing in October per stylelint/stylelint-ecosystem-tester#61

It looks like some node debug message is screwing the ability to parse the output of stderr when using --json as json, but the current message is highly truncated. I suspect this is new as a result of moving from node 20 to 22 for the the ecosystem tests.

The error we get is:

error: Unexpected token '(', "(node:1985"... is not valid JSON

Rethrow with the full content of stderr so we can see what is appearing that is causing this failure

@BPScott BPScott merged commit 286e6a1 into main Nov 29, 2024
2 checks passed
@BPScott BPScott deleted the e2e-poke branch November 29, 2024 22:36
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.

1 participant