-
-
Notifications
You must be signed in to change notification settings - Fork 219
add snapshot test for syntax highlight grammar #1391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…nto grammar-test
"vscode:prepublish": "npm run build && npm prune --production", | ||
"watch": "npm run build:grammar && tsc -w -p ./", | ||
"test": "echo 'NOOP'" | ||
"test": "npm run build:grammar && node test/grammar/test.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason for this test.js
script is that we can just read the dummy
directory to build the argument list instead of having to write a big long list in the package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome 🎉 This will help us greatly to adjust the grammar in the future and not having to worry about regressions - so much better than having a manual look at all the colors.
I think the tests cover the syntax pretty well, we can always add more if we run into something.
the test setup is adapted from vscode-ng-language-service. Might also have to add some edge cases we fixed before.