-
Notifications
You must be signed in to change notification settings - Fork 25
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(react-test-utils): fix remaining integration issues #109
fix(react-test-utils): fix remaining integration issues #109
Conversation
…to user/stwilczy/fixJest
@@ -19,3 +19,5 @@ Then inside your package.json add the compiler to your `scripts`: | |||
} | |||
} | |||
``` | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds like something we should fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree but who has funding to fix it? I created an issue a while back in microsoft/graphitation#331
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"noUnusedLocals": false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// prevents error about graphql import not being used when artifacts are loaded
This looks like it moved from further down, where it had this comment? Is this the reason this is being added here? Should we include the comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized it makes more sense to have local test specific tsconfigs, instead of using a big one. I will make a small PR to improve it even further and add some explanations
In #108 we partially fixed some issues, as imports still not work correctly due to wrong imports map and there was an error thrown when opening storybook on jest being used directly. Here we aim to fix these by:
moduleResolution: "Bundler'
needed for exports map (apart from compiler which needs to stay on 4.x) - this also required bumping @graphitation dependencies and making sure we can use per package tsconfig for testsVerified changes using local storybook and by making a patch in 1JS