Skip to content

Unify on using pretty diff and Javascript fixtures - #1721

Merged
orangejulius merged 1 commit into
masterfrom
consistent-tests
Aug 21, 2026
Merged

Unify on using pretty diff and Javascript fixtures#1721
orangejulius merged 1 commit into
masterfrom
consistent-tests

Conversation

@orangejulius

Copy link
Copy Markdown
Member

These fixtures have been a considerable source of pain and annoyance when working with query code. This is a first step at some quality of life improvements.

Some fixtures were written as JSON, which seems like the right call (Elasticsearch queries are JSON), but in practice means we can't have comments, etc, and different fixtures have different syntax. Most are Javascript, and after this commit all of them are.

We also use difflet for better visual diffs, which has been available for a while in this repo but never really used.

These fixtures have been a considerable source of pain and annoyance
when working with query code. This is a first step at some quality of
life improvements.

Some fixtures were written as JSON, which seems like the right call
(Elasticsearch queries are JSON), but in practice means we can't have
comments, etc, and different fixtures have different syntax. Most are
Javascript, and after this commit all of them are.

We also use difflet for better visual diffs, which has been available
for a while in this repo but never really used.

@missinglink missinglink left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice

@orangejulius
orangejulius marked this pull request as ready for review August 21, 2026 19:31
@orangejulius
orangejulius merged commit 4116a88 into master Aug 21, 2026
6 checks passed
@orangejulius
orangejulius deleted the consistent-tests branch August 21, 2026 19:31
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