Skip to content

Commit

Permalink
chore: Add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Oct 17, 2024
1 parent 9281234 commit 1c3a946
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/transform_conformance/snapshots/oxc.snap.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
commit: 3bcfee23

Passed: 60/69
Passed: 61/70

# All Passed:
* babel-plugin-transform-nullish-coalescing-operator
Expand Down Expand Up @@ -165,7 +165,7 @@ rebuilt : SymbolId(2): []
x Output mismatch


# babel-plugin-transform-react-jsx (29/31)
# babel-plugin-transform-react-jsx (30/32)
* refresh/does-not-transform-it-because-it-is-not-used-in-the-AST/input.jsx
x Output mismatch

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export function App() {
return (
<Suspense fallback={"Loading..."}>
<Init />
<PanelGroup direction="horizontal" className="app-main">
<Panel defaultSize={50} minSize={33} maxSize={66}>
<Input />
</Panel>
<PanelResizeHandle className="divider" />
<Panel>
<Output />
</Panel>
</PanelGroup>
</Suspense>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"plugins": [["transform-react-jsx"]],
"sourceType": "module"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export function App() {
return _jsxs(Suspense, {
fallback: "Loading...",
children: [_jsx(Init, {}), _jsxs(PanelGroup, {
direction: "horizontal",
className: "app-main",
children: [
_jsx(Panel, {
defaultSize: 50,
minSize: 33,
maxSize: 66,
children: _jsx(Input, {})
}),
_jsx(PanelResizeHandle, { className: "divider" }),
_jsx(Panel, { children: _jsx(Output, {}) })
]
})]
});
}

0 comments on commit 1c3a946

Please sign in to comment.