Skip to content

Commit a4ab890

Browse files
docs: Document function for print debugging (#374)
1 parent 0ec3e34 commit a4ab890

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Development.md

+14-3
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,25 @@ Please note that the yarn version used by CI is `v1.22.19` - you should use this
1313
## Running tests
1414

1515
```sh
16+
# Run snapshot tests
1617
npm run test
18+
# Update snapshot test outputs
19+
npm run update-snapshots
1720
```
1821

22+
## Debugging
23+
24+
### Print debugging
25+
26+
For print debugging, you can print types using:
27+
28+
```typescript
29+
checker.typeToString(type)
1930
```
20-
npm run update-snapshots
21-
```
2231

23-
Generate snapshots and update.
32+
TODO: Document how to print the AST for a file
33+
34+
TODO: Document how to print an individual AST node
2435

2536
## Skipping files/test for local development
2637

0 commit comments

Comments
 (0)