Replies: 4 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! |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions