Support jest.config.(cjs|mjs|ts)
as a Jest configuration file for packages written in ESM
#1020
Labels
jest.config.(cjs|mjs|ts)
as a Jest configuration file for packages written in ESM
#1020
Current Behavior
If a package is written in ESM, the only way to configure Jest is via the
"jest"
field in thepackage.json
file.Desired Behavior
It would be nice to also be able to use the standard
jest.config.(cjs|mjs|ts)
files.Suggested Solution
Read from the
jest.config.cjs
file (and any other config files that Jest resolves, such asjest.config.mjs
andjest.config.ts
)Who does this impact? Who is this for?
TSDX users who would like to write their Jest config in the standard ways.
Describe alternatives you've considered
Don't do anything
Additional context
#187
The text was updated successfully, but these errors were encountered: