You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in a case where tests and source code are both using imports (ES6 syntax). pectin wants modules to be set to false while mocha want them to be true.
Babel supports multiple envs in the babelrc config file, so supporting it in pectin would be great.
I'm currently using node v13.10.1, babel 6 and pectin ^3.6.1
PS: any other suggestions for me to do this in a "better" way are also welcome 😊
I'm in a case where tests and source code are both using imports (ES6 syntax). pectin wants modules to be set to false while mocha want them to be true.
Babel supports multiple envs in the babelrc config file, so supporting it in pectin would be great.
I'm currently using node v13.10.1, babel 6 and pectin ^3.6.1
PS: any other suggestions for me to do this in a "better" way are also welcome 😊
.babelrc file
sample app.js
sample test.spec.js
mocha.opts
source: https://babeljs.io/docs/en/6.26.3/babelrc
The text was updated successfully, but these errors were encountered: