Open rostyk-kanafotskyy opened 2 weeks ago
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.
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
Note: this is a continuation of https://github.com/Redocly/redocly-cli/pull/1742.
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:
useESM: true
setting was placed within globals.ts-jest which is now deprecated.These changes should help in achieving a smooth transition to ESM, particularly with module compatibility in Jest.
Reference
Testing
Screenshots (optional)
Check yourself
Security