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

Create Plugin: Fix Code Coverage for JSX files #271

Merged
merged 3 commits into from
Jun 1, 2023

Conversation

asimonok
Copy link
Contributor

@asimonok asimonok commented Jun 1, 2023

What this PR does / why we need it:

Changed to inline source maps for jest

Which issue(s) this PR fixes:

Fixes #267

@CLAassistant
Copy link

CLAassistant commented Jun 1, 2023

CLA assistant check
All committers have signed the CLA.

@jackw jackw added create-plugin related to the create-plugin tool patch Increment the patch version when merged release Create a release when this pr is merged type/bug Something isn't working pr/external labels Jun 1, 2023
@@ -4,7 +4,7 @@ module.exports = {
'^.+\\.(t|j)sx?$': [
'@swc/jest',
{
sourceMaps: true,
sourceMaps: 'inline',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the jest config for the tests run against the create-plugin and sign-plugin source code rather than the jest config that is scaffolded for a plugin. Rather than make the change here could you please make it in packages/create-plugin/templates/common/.config/jest.config.js instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeap. It was the wrong file.
Now I hope the changes are in the right file

@asimonok asimonok requested a review from jackw June 1, 2023 14:46
Copy link
Collaborator

@jackw jackw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

Thanks for picking this up so quickly and contributing to plugin-tools. 🥇

@jackw jackw changed the title Fix Code Coverage for JSX files Create Plugin: Fix Code Coverage for JSX files Jun 1, 2023
@jackw jackw merged commit 9516df3 into grafana:main Jun 1, 2023
@grafana-delivery-bot
Copy link

🚀 PR was released in @grafana/create-plugin@1.5.2 🚀

@grafana-delivery-bot grafana-delivery-bot bot added the released This issue/pull request has been released. label Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create-plugin related to the create-plugin tool patch Increment the patch version when merged pr/external release Create a release when this pr is merged released This issue/pull request has been released. type/bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

Bug: Wrong Code Coverage for JSX
3 participants