Skip to content

Commit

Permalink
chore(transform_conformance): reorganize react-refresh related tests (o…
Browse files Browse the repository at this point in the history
…xc-project#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: oxc-project#6884 (comment)
  • Loading branch information
Dunqing authored and Orenbek committed Oct 28, 2024
1 parent fdf863a commit b03f298
Show file tree
Hide file tree
Showing 58 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/transform_conformance/snapshots/oxc.snap.md
Original file line number Diff line number Diff line change
Expand Up @@ -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


Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b03f298

Please sign in to comment.