-
Notifications
You must be signed in to change notification settings - Fork 65
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
Es test #460
Es test #460
Conversation
Tests succeed on my end. |
This should fail on main, but pass on this branch: echo "foo = '1'" | bin/peggy.js --format es -t 1 unless you run this branch on node 20.7 or earlier, then it should fail with a version error. |
All of the interesting stuff is now in |
Apparently my version of Ubuntu ships with node version 18.13.0 so I get the expected failure. (Don't feel like messing around with updates right now...) On Error running test
Unexpected token 'export' |
Good, that works as expected. I like to use |
Thanks! $ echo "foo = '1'" | nve 21 node --experimental-vm-modules ./bin/peggy.js --format es -t 1
'1' |
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.
Check a few things.
Allow testing of es modules. Fixes #399