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(examples): improve handling of local jest config and remove RTL clean hack #110

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

sjwilczynski
Copy link
Contributor

Following up on a comment from #109 we improved handling of having package specific configurations:

  • we change just scripts to prioritize using package local Jest config if it exists
  • we move logic that handles transforms for graphql file and relay compiler generated artifacts to jest config in examples package
  • we remove a hack we added in jest.setupAfterEnv file by using /pure imports from RTL

@sjwilczynski sjwilczynski enabled auto-merge (squash) September 18, 2024 10:53
transform: {
"\\.(gql|graphql)$": "@graphql-tools/jest-transform",
// Needed for packages/examples to load relay compiler generated artifacts.
// It would be better if it could be config local to examples package but haven't found a way to configure it with just
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like it is local to the examples package? Am I missing something or does the comment need to be updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, I mindlessly copy pasted, will remove on next PR

@sjwilczynski sjwilczynski merged commit 0914059 into microsoft:main Sep 18, 2024
2 checks passed
@sjwilczynski sjwilczynski deleted the stwilczy/tsconfigChanges branch September 19, 2024 08:15
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.

2 participants