react icon indicating copy to clipboard operation
react copied to clipboard

fix: path handling in react devtools

Open Jack-Works opened this issue 1 year ago • 1 comments

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

Jack-Works avatar May 21 '24 15:05 Jack-Works

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

vercel[bot] avatar May 21 '24 15:05 vercel[bot]

hi please review this again thanks cc @hoxyq

Jack-Works avatar May 28 '24 06:05 Jack-Works

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?

hoxyq avatar May 28 '24 18:05 hoxyq

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

Jack-Works avatar May 29 '24 08:05 Jack-Works

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.

hoxyq avatar May 31 '24 14:05 hoxyq

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

Jack-Works avatar Jun 09 '24 04:06 Jack-Works

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>

hoxyq avatar Jun 10 '24 10:06 hoxyq

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

Jack-Works avatar Jul 01 '24 15:07 Jack-Works

Thanks!

hoxyq avatar Jul 04 '24 14:07 hoxyq