Skip to content

Conversation

jasonlyu123
Copy link
Member

the test setup is adapted from vscode-ng-language-service. Might also have to add some edge cases we fixed before.

@jasonlyu123 jasonlyu123 marked this pull request as ready for review February 23, 2022 07:09
"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"
Copy link
Member Author

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

Copy link
Member

@dummdidumm dummdidumm left a 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.

@dummdidumm dummdidumm merged commit 05024a6 into sveltejs:master Feb 23, 2022
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.

2 participants