-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
Looking at my PR here balderdashy/enpeem#4, or well this branch: https://github.com/Globegitter/enpeem/tree/skip-dry-run-prefix-features
I want to use babel (via require('babel/register')) only for my tests, so I can have nice es6/7 syntax for the tests, but the module itself should not get transpiled. This works quite well in theory, the module itself does not get transpiled when someone npm installs it, but the tests to transpile the application code. So for example tests work on node 0.10 even though I am using native Promises which only works on node 0.12/io.js 1.x.
If have tried to use the only option, see https://github.com/Globegitter/enpeem/blob/skip-dry-run-prefix-features/tests/runner.js#L12, but that is not changing anything in my case.
But to get to the point, I still want to be able to use ES6/7 in my tests, but I want this require: https://github.com/Globegitter/enpeem/blob/skip-dry-run-prefix-features/tests/acceptance/basic-test.js#L8 to be ignored by babel. Is that somehow possible?