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: path handling in react devtools #29199

Merged
merged 7 commits into from
Jul 4, 2024
Merged

Conversation

Jack-Works
Copy link
Contributor

Summary

Fix how devtools handles URLs. It

  • cannot handle relative source map URLs //# sourceMappingURL=x.map
  • cannot recognize Windows style URLs

How did you test this change?

works on my side

Copy link

vercel bot commented May 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2024 7:36am
@Jack-Works
Copy link
Contributor Author

hi please review this again thanks cc @hoxyq

@hoxyq
Copy link
Contributor

hoxyq commented May 28, 2024

hi please review this again thanks cc @hoxyq

Hey, I don't see anything wrong with this approach, but I need to test it manually, for which I don't have time at the moment.
Can I ask you to add 1-2 test cases for symbolicateSource function, which will demonstrate that this implementation fixes the cases, which are mentioned in the description of this PR?

@Jack-Works
Copy link
Contributor Author

hi please review this again thanks cc @hoxyq

Hey, I don't see anything wrong with this approach, but I need to test it manually, for which I don't have time at the moment. Can I ask you to add 1-2 test cases for symbolicateSource function, which will demonstrate that this implementation fixes the cases, which are mentioned in the description of this PR?

Hi! Current symbolicateSource (or the component using it) doesn't have any test cases, so I have no idea where to add it

@hoxyq
Copy link
Contributor

hoxyq commented May 31, 2024

hi please review this again thanks cc @hoxyq

Hey, I don't see anything wrong with this approach, but I need to test it manually, for which I don't have time at the moment. Can I ask you to add 1-2 test cases for symbolicateSource function, which will demonstrate that this implementation fixes the cases, which are mentioned in the description of this PR?

Hi! Current symbolicateSource (or the component using it) doesn't have any test cases, so I have no idea where to add it

You can add it to packages/react-devtools-shared/src/__tests__. You would need to export symbolicateSource function and use it it in your Jest test cases.

@Jack-Works
Copy link
Contributor Author

hi please review this again thanks cc @hoxyq

Hey, I don't see anything wrong with this approach, but I need to test it manually, for which I don't have time at the moment. Can I ask you to add 1-2 test cases for symbolicateSource function, which will demonstrate that this implementation fixes the cases, which are mentioned in the description of this PR?

Hi! Current symbolicateSource (or the component using it) doesn't have any test cases, so I have no idea where to add it

You can add it to packages/react-devtools-shared/src/__tests__. You would need to export symbolicateSource function and use it it in your Jest test cases.

hello! How can I run the test? I tried yarn test --testPathPattern=react-devtools-shared but 0 tests hit

@hoxyq
Copy link
Contributor

hoxyq commented Jun 10, 2024

hi please review this again thanks cc @hoxyq

Hey, I don't see anything wrong with this approach, but I need to test it manually, for which I don't have time at the moment. Can I ask you to add 1-2 test cases for symbolicateSource function, which will demonstrate that this implementation fixes the cases, which are mentioned in the description of this PR?

Hi! Current symbolicateSource (or the component using it) doesn't have any test cases, so I have no idea where to add it

You can add it to packages/react-devtools-shared/src/__tests__. You would need to export symbolicateSource function and use it it in your Jest test cases.

hello! How can I run the test? I tried yarn test --testPathPattern=react-devtools-shared but 0 tests hit

Try running this from root folder - yarn test --build --project=devtools -r=experimental --ci packages/react-devtools-shared/src/__tests__/<your-test-name>

@Jack-Works
Copy link
Contributor Author

hi @hoxyq I have added tests, please take a look thanks!

Copy link
Contributor

@hoxyq hoxyq left a comment

Choose a reason for hiding this comment

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

Thanks, looks good. Left some formatting suggestions and 1 question.

I need to test it manually before merging, will keep you updated

@hoxyq
Copy link
Contributor

hoxyq commented Jul 4, 2024

Thanks!

@hoxyq hoxyq merged commit 3da2616 into facebook:main Jul 4, 2024
139 checks passed
@Jack-Works Jack-Works deleted the devtools-url branch July 7, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants