Redocly / redocly-cli

⚒️ Redocly CLI makes OpenAPI easy. Lint/validate to any standard, generate beautiful docs, and more.
https://redocly.com/docs/cli/
MIT License
952 stars 149 forks source link

chore: fix jest esm tests #1797

Open rostyk-kanafotskyy opened 2 weeks ago

rostyk-kanafotskyy commented 2 weeks ago

What/Why/How?

This update to the jest.config.ts and the addition of setup-jest.js includes several modifications, focusing on enabling ESM (ECMAScript Module) support for Jest and updating how configurations are applied. Here’s a summary of the key changes:

These changes should help in achieving a smooth transition to ESM, particularly with module compatibility in Jest.

Reference

Testing

Screenshots (optional)

Check yourself

Security

changeset-bot[bot] commented 2 weeks ago

⚠️ No Changeset found

Latest commit: 0fa19f9a92ced8b4f80b57cf85b600e02dc2403d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

tatomyr commented 2 weeks ago

Note: this is a continuation of https://github.com/Redocly/redocly-cli/pull/1742.