-
Notifications
You must be signed in to change notification settings - Fork 68
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
power-assert make assert()
of assert module silent
#43
Comments
@azu Thank you for reporting. |
@azu Just created and published babel-plugin-empower-assert to solve this problem. Would you give it a try? |
Made a pull-req for you. |
Yeah exactly! |
FYI: if you are using Babel, you can use babel-plugin-empower-assert to solve this problem. With babel-plugin-empower-assert, you can enhance normal {
"presets": [
. . .
],
"env": {
"development": {
"plugins": [
"babel-plugin-empower-assert",
"babel-plugin-espower"
]
}
}
} |
Added to FAQ as How to deal with |
Thanks again. |
You're welcome ;) |
I've created reproduce repository.
Application code use
assert
module of Node Core.index.js
Test code:
These code are transformed by babel + babel-plugin-espower.
.babelrc
When I do this:
Expected
Fail test
Actual
Pass test :(
Reason
Application code is transformed to
_rec._expr
return object.So,
assert(Object)
never throw error. It causes this issue.Do you have any solution?
The text was updated successfully, but these errors were encountered: