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

refactor(ui-test-locator,ui-test-queries): export types needed for locator functions #1704

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

matyasf
Copy link
Collaborator

@matyasf matyasf commented Sep 30, 2024

This is an early preparation to use pnpm. When migrating to it, TS compilation fails because it cannot infer the types of locator functions properly, likely if someone would use our locators they could not if they use pnpm

TEST PLAN:
Just check the code that its not exporting something that it should not have

…cator functions

This is an early preparation to use pnpm. When migrating to it, TS compilation fails because it
cannot infer the types of locator functions properly
TEST PLAN:
Just check the code that its not exporting something that it should not have
@matyasf matyasf self-assigned this Sep 30, 2024
Copy link

github-actions bot commented Sep 30, 2024

PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-10-01 09:01 UTC

Copy link
Contributor

@balzss balzss left a comment

Choose a reason for hiding this comment

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

looks good to me 👍

@@ -84,6 +84,8 @@ const additionalExamples: AdditionalExample[] = [
}
]

// Note: require.context causes Webpack to have huge compile times (and often
// fail with out of memory errors) when switching to `pnpm`
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a fix for this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I could not find one and I've spent a total of ~15 hours trying to fix this.

But we will need to totally rewrite this file anyway since storiesOf was removed by Storybook in v8

@matyasf matyasf merged commit 0d3451d into master Oct 1, 2024
10 of 11 checks passed
@matyasf matyasf deleted the export_types_for_pnpm branch October 1, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants