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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(rspack): add github-actions-reporter to jest #3081

Merged
merged 1 commit into from
May 10, 2023
Merged

Conversation

Boshen
Copy link
Contributor

@Boshen Boshen commented May 9, 2023

Summary

See https://jestjs.io/docs/configuration#github-actions-reporter

馃 Generated by Copilot at b776c46

Updated jest configuration files for rspack-cli, rspack-dev-server, and rspack packages to support TypeScript testing and improve coverage reporting. Added conditional reporters for GitHub Actions and local development in rspack-cli.

Walkthrough

馃 Generated by Copilot at b776c46

  • Replace module.exports assignment with config variable declaration in jest configuration files to allow conditional modification based on CI environment variable (link, link, link)
  • Set reporters property of jest configuration object depending on CI environment variable in packages/rspack-cli/jest.config.js, packages/rspack-dev-server/jest.config.js, and packages/rspack/jest.config.js to use different test result formats for GitHub Actions and local development (link, link, link)

@Boshen Boshen requested a review from hardfist as a code owner May 9, 2023 08:33
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label May 9, 2023
@Boshen Boshen enabled auto-merge May 10, 2023 02:42
@Boshen Boshen added this pull request to the merge queue May 10, 2023
Merged via the queue into main with commit 3381e48 May 10, 2023
14 checks passed
@Boshen Boshen deleted the jest-gh-report branch May 10, 2023 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants