Skip to content

use snapshot testing for syntax analysis#4

Open
abdrd wants to merge 1 commit into
element39:mainfrom
abdrd:snapshot
Open

use snapshot testing for syntax analysis#4
abdrd wants to merge 1 commit into
element39:mainfrom
abdrd:snapshot

Conversation

@abdrd

@abdrd abdrd commented Jul 12, 2026

Copy link
Copy Markdown

It's now easy to test the parser and the lexer. Just add files to tests/testfiles/ and then run bun test syntax.test.ts. This ensures nothing broke after a modification to the parser and the lexer. If you want to save the snapshot of a test, add the -u option to the command. bun test also runs syntax.test.ts.

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.

1 participant