Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(integration-karma): run hydration preprocessor just for focused tests #4673

Merged
merged 5 commits into from
Oct 21, 2024

Conversation

cardoso
Copy link
Contributor

@cardoso cardoso commented Oct 21, 2024

Details

I found it a bit difficult to debug the server-side code when using the .only as the transformation will run for all tests.

I added this quick solution to run the transformation just for the focused tests (probably can be improved).

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

GUS work item

@cardoso cardoso requested a review from a team as a code owner October 21, 2024 17:55
@cardoso cardoso changed the title fix(integration-karma): run transformation once when .only file present fix(integration-karma): run hydration preprocessor just once when .only file present Oct 21, 2024
Copy link
Contributor

@nolanlawson nolanlawson left a comment

Choose a reason for hiding this comment

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

LGTM but a few small nits. Thank you!

@cardoso cardoso force-pushed the hydration-tests-only branch from ff81783 to 000cf78 Compare October 21, 2024 18:34
@cardoso cardoso changed the title fix(integration-karma): run hydration preprocessor just once when .only file present fix(integration-karma): run hydration preprocessor just for focused tests when .only file present Oct 21, 2024
@cardoso cardoso changed the title fix(integration-karma): run hydration preprocessor just for focused tests when .only file present fix(integration-karma): run hydration preprocessor just for focused tests Oct 21, 2024
@nolanlawson
Copy link
Contributor

Thanks!

@nolanlawson
Copy link
Contributor

/nucleus test

@nolanlawson nolanlawson enabled auto-merge (squash) October 21, 2024 22:20
@nolanlawson nolanlawson merged commit 8d93709 into salesforce:master Oct 21, 2024
10 of 11 checks passed
@nolanlawson
Copy link
Contributor

Somehow this merged via GitHub auto-merge despite failing the run-karma-tests-group-4 test due to Node v20 not having globSync.

I'll have to fix our CI settings, but I'll open up another PR to fix the glob issue...

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants