-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cannot show descriptive assertion messages #4
Comments
Hi @kazupon, thank you for reporting. To write tests in ES6 with Babel, please use babel-plugin-espower or espower-babel (espower-babel uses babel-plugin-espower internally). webpack-espower-loader (and the other instrumentors) transforms code after babel, which does not work since babel's output has changed. babel-plugin-espower works as a babel plugin and runs before babel's transformation, so it works as expected. FYI: I made a pull-req for you Warning from webpack is due to the use of a dynamic require (which is inevitable hack for plugin system) and is not really an issue, just a warning. Please ignore it though you may feel uncomfortable with. |
I confirmed that it works. |
Thank you for reporting! 👍 |
Awesome !! 👍 |
When i was using
webpack-espower-loader
in my environment (https://github.com/kazupon/vue-plugin-boilerplate), it's works.However When the test was failed,
power-assert
cannot show the descriptive assertion messages.Please see the detail error log (karma reporter: progress):
https://gist.github.com/kazupon/3ceabbe4cac1b703aa17
I become curious about the following warning messages has been output.
What I'm doing wrong?
Thanks!
The text was updated successfully, but these errors were encountered: