-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
[FR]: Recommended way to refer to a central jest.config.js #107
Comments
My current solution is to simply create a ts_project:
which can now be referenced as a config and is correctly resolved. Maybe I could wrap this into a macro and that should be it. Anyways, thank you aspect-build for making such a solid bazel framework for javascript and alike. Really beautiful work! |
I was talking to @mattem about this and the pattern I'm considering doing to keep editor support is to just make a config that is exported as a first class NPM package and then referenced like one. This gives you two things:
At least, that is what we are gonna try and pursue |
Is the problem you're hitting when your jest config is in a parent package that you need a copy_to_bin there so that you can pass it to the jest_test config attribute? Using a ts_project to transpile your |
I'm chiming in here again because we are crossing this bridge. The solution/pattern I've always used is to make your central config an NPM package and then have other npm packages rely on it via |
What is the current behavior?
Currently there's no way to refer to a jest configuration situated in parent packages.
The current solution is to copy jest.config.js in each folder.
Describe the feature
Have an argument or a type to refer to the common jest.config.js. Something similar to ts_config?
I suspect I could write a macro and perform a copy_to_bin, but I'm not sure if it's the right approach.
What do you think?
Fund our work
The text was updated successfully, but these errors were encountered: