chore(transform_conformance): reorganize react-refresh related tests (#6918)

Move all tests that are copied from [react-refresh](https://github.com/facebook/react/blob/main/packages/react-refresh/src/__tests__/ReactFreshBabelPlugin-test.js) to the `react-refresh` directory, and add a README to describe the source of these tests. This way we can better stay in sync with upstream.

related: https://github.com/oxc-project/oxc/pull/6884#discussion_r1816888813
This commit is contained in:
Dunqing 2024-10-26 13:07:10 +00:00
parent c41c013b4d
commit 142da1d2ff
58 changed files with 4 additions and 1 deletions

View file

@ -171,7 +171,7 @@ x Output mismatch
* refresh/does-not-transform-it-because-it-is-not-used-in-the-AST/input.jsx
x Output mismatch
* refresh/supports-typescript-namespace-syntax/input.tsx
* refresh/react-refresh/supports-typescript-namespace-syntax/input.tsx
x Output mismatch

View file

@ -0,0 +1,3 @@
The tests of this directory are copied from the (react-refresh)[https://github.com/facebook/react/blob/main/packages/react-refresh/src/__tests__/ReactFreshBabelPlugin-test.js], and did some style, import order, and other minor changes to made them work with our transformer.
NOTE: This directory only add tests copied from the upstream, so that we can distinguish the source of the test