Skip to content
This repository was archived by the owner on Oct 31, 2026. It is now read-only.

test: delete query tests - #82

Merged
exKAZUu merged 1 commit into
mainfrom
test/delete-query-tests
Oct 30, 2026
Merged

exKAZUu merged 1 commit into
mainfrom
test/delete-query-tests

Conversation

@exKAZUu

@exKAZUu exKAZUu commented Oct 30, 2026

Copy link
Copy Markdown
Member

Why

The Maintenance Scope in AGENTS.md limits this fork to full parsing and forbids testing queries, but query tests that still passed remained after the incremental-parsing tests were deleted.

Requirements

  • required: handle the remaining query tests consistently with the Maintenance Scope by deleting every test or assertion that checks query results (captures or matches of queries/*.scm, and query-feature behavior), keeping full-parse assertions in mixed test files.
  • required: keep the queries/*.scm files, tree-sitter.json, and bindings published unchanged; only tests change.
  • required: do not change grammar or scanner code.
  • chosen: keep the node-type alternation query in anglePrefixProofs.test.ts, because it only locates emphasis, strikethrough, html_tag, and autolink nodes for tree-range assertions rather than testing query behavior.

Customer Summary

No change to the published package; the test suite no longer checks query field matching.

Technical Summary

test/unit/fenceInfoString.test.ts loses its field and negated-field (!info_string) query assertions, which repeated its childForFieldName('info_string') assertion; that assertion and the hasError check stay, under a title that no longer mentions queries.

Testing

bun run verify, bun run build/ci, and bun wb test test/unit/fenceInfoString.test.ts pass. The remaining suite runs in CI.

Delete the info-string query assertions, keeping the field assertion, since the
fork maintains only full parsing.

Co-authored-by: WillBooster (Claude Code) <agent@willbooster.com>
@exKAZUu
exKAZUu merged commit f008f07 into main Oct 30, 2026
11 checks passed
@exKAZUu
exKAZUu deleted the test/delete-query-tests branch October 30, 2026 01:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant