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

feat(cli): config:init makes mjs config when using ESModules #4210

Merged
merged 1 commit into from
May 28, 2024

Conversation

daniel-melanson
Copy link
Contributor

Summary

Installation guide does not work out of the box. npx ts-jest config:init does not respect "type": "module" in package.json, causing npx jest to fail. This PR makes config:init sensitive to this case.

Test plan

Screencast.from.2023-09-30.12-29-34.webm

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Closes #4012

@coveralls
Copy link

Pull Request Test Coverage Report for Build 9263606621

Details

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on cli-init-mjs-config at 96.03%

Totals Coverage Status
Change from base Build 9262696255: 96.0%
Covered Lines: 4045
Relevant Lines: 4144

💛 - Coveralls

@ahnpnl ahnpnl merged commit 81a5f64 into kulshekhar:main May 28, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: config:init should create ESM version of jest.config.js when type = module
3 participants