All babel modules/plugins are on the latest version of babel v6. Mocha is on v4.0.1.
Setup:
// .babelrc
{
presets: [
"stage-3",
[
"env",
{
"targets": {
"browsers": [
"last 2 versions"
],
"node": "current"
}
}
]
"react"
],
plugins: ["transform-runtime", "syntax-dynamic-import"]
}
// mocha.opts
--recursive
--reporter progress
--require babel-polyfill
--require babel-register
--timeout 20000
So when I run my test suite I still get: error stack trace.
I would have to imagine it has something to do with babel-register and syntax-dynamic-import not working together correctly. Because when I use it with babel-loader in webpack I don't get any syntax errors on transpile.