-
-
Notifications
You must be signed in to change notification settings - Fork 25
feat: Initial test case for repl errors #17
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
base: main
Are you sure you want to change the base?
Conversation
test/test-repl-error.js
Outdated
|
||
new REPL(inoutStream, inoutStream); | ||
|
||
const errorMessage = 'SyntaxError: Invalid or unexpected token'; |
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.
tests shouldn't use specific messages because they change based on which engine node runs in
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.
hmmm, then how can we assert the expected value?
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.
Ping @devsnek
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.
take a look at the tests for repl in node core
@devsnek Thanks for your help. I have refactored the assertion accordingly. Let me know if anything needs to be done further. |
ping @devsnek |
1 similar comment
ping @devsnek |
i'd like to see if we can set up CI of some sort for the linter before we merge more PRs |
@devsnek Perfect! Sounds good to me. |
371bc3d
to
dc3e899
Compare
2f98d80
to
ef458c1
Compare
@devsnek Any update on this? |
69006e9
to
a8fd2b0
Compare
I know it's a long time, any update here? cc @devsnek |
Hey @devsnek
I worked on the item : #6
This should be the beginning for adding test cases for repl 👍
Have a look and let me know we can follow the same pattern for other test cases too. Once this is good, may be we can then add scripts to run our tests on our npm build process.
Thanks for your time on this.