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

fix(test): rename jest.config.js to jest.config.cjs to fix jest error #19568

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

plainheart
Copy link
Member

@plainheart plainheart commented Jan 30, 2024

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

Fix jest can't run after changing to the ESM package.

Before After
image

Other Information

Another fix strategy is adding a package.json file to the test/ut folder and explicitly setting the package type as 'commonjs'.
But after discussion, the strategy that renames the jest.config.js to jest.config.cjs is preferred.
Refer to the changes at plainheart@bfb1e83 and the action log.

Copy link

echarts-bot bot commented Jan 30, 2024

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

The pull request is marked to be PR: author is committer because you are a committer of this project.

To reviewers: If this PR is going to be described in the changelog in the future release, please make sure this PR has one of the following labels: PR: doc ready, PR: awaiting doc, PR: doc unchanged

This message is shown because the PR description doesn't contain the document related template.

Copy link
Contributor

The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-19568@fde9fbd

@Ovilia Ovilia merged commit 4d3bbae into release Jan 31, 2024
2 checks passed
@Ovilia Ovilia deleted the fix-jest branch January 31, 2024 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants