Skip to content

Conversation

@pilimartinez
Copy link
Member

@pilimartinez pilimartinez commented Feb 5, 2026

…check [red-120]

Affected Components

  • CLI
  • Create CLI
  • Test
  • Docs
  • Examples
  • Other

Notes for the Reviewer

npx checkly pw-test --create-check fails with "Line 10: Unexpected token ILLEGAL" when the existing checkly.config.ts contains numeric literals with underscore separators (e.g., timeout: 120_000).

I've added a custom acorn-based parser wrapper (src/helpers/recast-acorn-parser.ts) that calls acorn.parse() directly with ecmaVersion: 'latest' that supports underscore separators.

hwartig
hwartig previously approved these changes Feb 6, 2026
Copy link
Contributor

@hwartig hwartig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@pilimartinez pilimartinez merged commit 2b5c99c into main Feb 6, 2026
4 checks passed
@pilimartinez pilimartinez deleted the pilar/red-120-pw-test-create-check-malfunctions-when-used-with-an-existing branch February 6, 2026 15:25
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