Replies: 1 comment 1 reply
-
https://ast-grep.github.io/guide/test-rule.html#snapshot-test
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to setup automatic migrations for the bevy game engine. I tried setting up a rule that migrates to a new version. But when I setup a test for it using ast-grep builtin test feature it gives me a long error message. I can visually confirm that the rule worked so I would have expected it to pass the test.
Here's the rule file:
Here's the test file:
Here's the error:
I'm not sure if I'm doing something wrong or if the test cases are only intended to be used for lints and not for rewrites. I expected this setup to just work.
Beta Was this translation helpful? Give feedback.
All reactions