We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c1f51d commit 9639d81Copy full SHA for 9639d81
AGENTS.md
@@ -134,6 +134,19 @@ Example failure:
134
135
Fix: prevent accidental nested `FuncCall` by inspecting and unwrapping recursively.
136
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
150
---
151
152
### Development Setup
0 commit comments