Skip to content

docs: Document function for print debugging #374

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,25 @@ Please note that the yarn version used by CI is `v1.22.19` - you should use this
## Running tests

```sh
# Run snapshot tests
npm run test
# Update snapshot test outputs
npm run update-snapshots
```

## Debugging

### Print debugging

For print debugging, you can print types using:

```typescript
checker.typeToString(type)
```
npm run update-snapshots
```

Generate snapshots and update.
TODO: Document how to print the AST for a file

TODO: Document how to print an individual AST node

## Skipping files/test for local development

Expand Down
Loading