Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

How do I extend the jest config? #131

Closed
papiro opened this issue May 4, 2021 · 1 comment
Closed

How do I extend the jest config? #131

papiro opened this issue May 4, 2021 · 1 comment

Comments

@papiro
Copy link

papiro commented May 4, 2021

I thought I had used rescripts about a year ago to create functions which could extend the various configs. These functions would get passed the existing config object and allow me to modify it or add nodes into the object before returning it. It looks like the library has changed its interface but now I don't see that there are any rescripts to modify the jest config.

The use-babel-jest-config doesn't appear to do that since the example it shows in its repo is actually just showing that it allows you to provide your own .babelrc. I would like to extend the jest.config.js. Is this possible with an existing rescript?

@papiro
Copy link
Author

papiro commented May 4, 2021

NVM! Just realized that the way to do it is via a custom rescript which returns an object with a jest property.

@papiro papiro closed this as completed May 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant