Skip to content

test: add test cases for AST node expansion and interactions#398

Open
lumirlumir wants to merge 17 commits into
mainfrom
test/add-test-cases-for-ast-node-expansion
Open

test: add test cases for AST node expansion and interactions#398
lumirlumir wants to merge 17 commits into
mainfrom
test/add-test-cases-for-ast-node-expansion

Conversation

@lumirlumir
Copy link
Copy Markdown
Member

@lumirlumir lumirlumir commented Apr 20, 2026

Prerequisites checklist

AI acknowledgment

  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

What is the purpose of this pull request?

This PR adds AST node expansion tests for various parser options, such as Markdown frontmatter and math, as well as the JSON allowTrailingCommas option.

Since these end-to-end test cases cover the full range of AST interactions across different languages, the amount of code added is a bit large. However, that was the original purpose of #64 (comment), so I think it’s worth adding.

What changes did you make? (Give an overview)

Added test cases for:

  • JavaScript
  • JSON
  • Markdown
  • CSS
  • HTML

Also, I’ve divided the section using test.describe to make it clearer how the tests are partitioned and structured.

Related Issues

N/A

Is there anything you'd like reviewers to focus on?

N/A

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 20, 2026

Deploy Preview for eslint-code-explorer ready!

Name Link
🔨 Latest commit b169e3d
🔍 Latest deploy log https://app.netlify.com/projects/eslint-code-explorer/deploys/6a1823051a78ce000861b6f2
😎 Deploy Preview https://deploy-preview-398--eslint-code-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@eslintbot eslintbot added this to Triage Apr 20, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in Triage Apr 20, 2026
@lumirlumir lumirlumir mentioned this pull request Apr 20, 2026
1 task
@lumirlumir lumirlumir changed the title test: add test cases for AST node expansion test: add test cases for AST node expansion and interactiosn Apr 20, 2026
@lumirlumir lumirlumir changed the title test: add test cases for AST node expansion and interactiosn test: add test cases for AST node expansion and interactions Apr 20, 2026
@lumirlumir lumirlumir moved this from Needs Triage to Implementing in Triage Apr 21, 2026
@github-actions

This comment was marked as outdated.

@github-actions github-actions Bot added the Stale label Apr 30, 2026
@lumirlumir lumirlumir removed the Stale label May 5, 2026
@github-actions

This comment was marked as outdated.

@lumirlumir lumirlumir marked this pull request as ready for review May 28, 2026 11:18
@lumirlumir lumirlumir moved this from Implementing to Needs Triage in Triage May 28, 2026
@lumirlumir lumirlumir requested a review from Copilot May 28, 2026 11:18
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds end-to-end Playwright tests for AST node expansion across multiple language parser options (JavaScript, JSON, Markdown, CSS, HTML), structured into test.describe blocks for clarity.

Changes:

  • Adds an AST node expansion describe block covering JavaScript source types, ECMAScript version, and JSX.
  • Adds JSON tests for JSON/JSONC/JSON5 modes and Allow Trailing Commas option.
  • Adds Markdown (CommonMark/GFM, frontmatter variants, math), CSS (tolerant parsing), and HTML (template engine syntax, front matter) tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

3 participants