Skip to content

Commit 9639d81

Browse files
committed
testing
1 parent 4c1f51d commit 9639d81

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

AGENTS.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,19 @@ Example failure:
134134

135135
Fix: prevent accidental nested `FuncCall` by inspecting and unwrapping recursively.
136136

137+
## Custom testing strategy
138+
139+
Please review the test utilities — note that exact SQL string equality is not required. The focus is on comparing the resulting ASTs.
140+
141+
Refer to `expectAstMatch` to understand how correctness is validated.
142+
143+
The pipeline is:
144+
parse(sql1) → ast → deparse(ast) → sql2
145+
While sql2 !== sql1 (textually), a correct round-trip means:
146+
parse(sql1) === parse(sql2) (AST-level equality).
147+
148+
You can see `expectAstMatch` here: packages/deparser/test-utils/index.ts
149+
137150
---
138151

139152
### Development Setup

0 commit comments

Comments
 (0)