Since Babel 6, the CommonJS default export behaviour has been removed and consumers need to add .default to their CJS requires for all modules compiled with babel (or use the ES6 syntax).
For now I replaced every export default with module.exports =.
I believe this is a general Node.js issue and not directly caused by Nightwach.
You cannot use the ES6 export syntax with nightwatch tests as it directly expects a test object on module.exports. An easy fix would be to check if there is a 'default' key and use it as the test object; but if we have to wait for a full ES6 integration, I'm fine with it too.
+1 for full es6 integration.
@antogyn you should be able to add this transform to babel if you really want this behavior https://github.com/59naga/babel-plugin-add-module-exports
Most helpful comment
+1 for full es6 integration.