-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow babel transpilation of test helper files. #156
Comments
Why did you close? |
Didn't mean to. |
I'm open to it, as it would be very nice to be able to use ES2015 stuff in test helper files too. I think a |
Would be very nice indeed! Maybe use something like |
Or just default the whitelist to include Or just everything in the |
@jamestalmage I think defaulting the whitelist to |
Thats my feeling as well. |
This paves the way for avajs/ava#156
test.require()
which is equivalent to require with babel hook
+1, I want this thing too. But why do you need all that stuff around Why not just add babel hook using |
Because, one goal of this library is not to pollute any of your production code with babel transforms/polyfills (unless you specifically ask it to). |
But all my source code is written for babel too. Will there an option to transpile files from my |
I actually want my source code (non-test) to be transpiled by babel as well..... i.e. I want to be able to |
@sindresorhus ahh.... thanks for the reference to #111. I'll take a look! |
Closing this issue as it's already implemented. |
We are doing all this work to ensure babel does not leak into any file but the test file, but there is a downside for "helper" files, etc.
The other option would be to hook require and make them provide some sort of
include
/exclude
glob.The text was updated successfully, but these errors were encountered: