-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 setupTestFrameworkScriptFile to accept an array (or add a new config option that does) #6942
Comments
I think it makes sense to add @rickhanlonii @thymikee thoughts? |
Yup, agreed with @SimenB plan |
+1 to this proposal I’m delighted to make this config option more useable and less verbose by dropping |
Yeah, more consistency with |
should we rename this to |
Not sure, as it doesn't really modify/setup the runner itself. I could probably be convinced quite easily, though |
I wonder if we could drop Either That said I appreciate this is subjective and could be bike shedding so happy to go with what you guys think 😉 |
All we need to clearly communicate is that |
It seems like @SimenB is on the right track with intent needing to be conveyed accurately. On the topic of Why not rename this to On the topic of Why not rename this to |
Must use `setupTestFrameworkScriptFile` ([hopefully this will change soon though](jestjs/jest#6942))
Upcoming major (because of babel 7), so we can just deprecate the old one if needed |
|
I'm good with those names 👍 Gonna have to re-record a few egghead lessons I'm working on :P But this is a great change! |
I'd like to pick this up as my first contribution to the project. |
Awesome, go ahead! Feel free to ask questions if you have any :) |
@SimenB Decided to give this a try and just made a PR. Figured we can talk around the code on the PR. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🚀 Feature Proposal
I would like to pass multiple files to be run immediately before each test file is run but after the test framework has been loaded. This would either amount to extending
setupTestFrameworkScriptFile
to accept an array of files, or a new config option (setupTestFrameworkFiles
?) to allow this.Motivation & Example
I can change this:
Into this:
Pitch
This would simplify the project because the fact that
setupFiles
accepts an array andsetupTestFrameworkScriptFile
only accepts a string is confusing. It would also mean I don't have to create a file with two lines of code which would be nice. This would also make extending toolkit with a built-insetupTestFrameworkScriptFile
with some custom behavior for the project.The text was updated successfully, but these errors were encountered: