Skip to content
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

[Bug] Unable to run with custom-config in an esm-project #91

Closed
benbender opened this issue Apr 10, 2022 · 1 comment
Closed

[Bug] Unable to run with custom-config in an esm-project #91

benbender opened this issue Apr 10, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@benbender
Copy link

Describe the bug

If I eject the config in an esm-project, the filename test-runner-jest.config.js is interpreted as esm-module and jest will fail to run. As the filename is hardcoded, I'm unable to rename the file to test-runner-jest.config.cjs.

Two possible solutions:

  1. make the filename of the config adjustable via parameter
  2. test for the existance of test-runner-jest.config.cjs in the cli
@bryanjtc
Copy link
Member

Fixed with #259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants