Skip to content

feat: inline constant tag transformation #217

feat: inline constant tag transformation

feat: inline constant tag transformation #217

Triggered via pull request May 6, 2024 12:55
Status Failure
Total duration 1m 2s
Artifacts

check.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
packages/unminify/src/transformations/__tests__/un-jsx.spec.ts > jsx with dynamic Component tag #2: packages/unminify/src/transformations/__tests__/un-jsx.spec.ts#L170
AssertionError: expected 'function fn() {\n return React.creat…' to deeply equal 'function fn() {\n return <div>Hello<…' - Expected + Received function fn() { - return <div>Hello</div>; + return React.createElement( + Components[0], + null, + "Hello", + ); } ❯ packages/unminify/src/transformations/__tests__/un-jsx.spec.ts:170:1 ❯ packages/test-utils/src/index.ts:32:22
packages/unminify/src/transformations/__tests__/un-jsx.spec.ts > jsx with dynamic Component tag #3: packages/unminify/src/transformations/__tests__/un-jsx.spec.ts#L188
AssertionError: expected 'const Foo = () => {\n const r = true…' to deeply equal 'const Foo = () => {\n return <div><a…' - Expected + Received const Foo = () => { - return <div><a key="b">bar</a><div key={c}>baz</div></div>; + const r = true; + return jsxs("div", { + children: [ + jsx(r ? "a" : "div", { children: "bar" }, "b"), + jsx(g ? "p" : "div", { children: "baz" }, c), + ] + }); }; ❯ packages/unminify/src/transformations/__tests__/un-jsx.spec.ts:188:1 ❯ packages/test-utils/src/index.ts:32:22
packages/unminify/src/transformations/__tests__/un-jsx.spec.ts > jsx with dynamic Component tag #4: packages/unminify/src/transformations/__tests__/un-jsx.spec.ts#L208
AssertionError: expected 'function fn() {\n return React.creat…' to deeply equal 'function fn() {\n return <a>Hello</a…' - Expected + Received function fn() { - return <a>Hello</a>; + return React.createElement( + value ? "a" : "div", + null, + "Hello", + ); } ❯ packages/unminify/src/transformations/__tests__/un-jsx.spec.ts:208:1 ❯ packages/test-utils/src/index.ts:32:22
packages/unminify/src/transformations/__tests__/un-jsx.spec.ts > jsx with dynamic Component tag #5: packages/unminify/src/transformations/__tests__/un-jsx.spec.ts#L226
AssertionError: expected 'function fn() {\n return React.creat…' to deeply equal 'function fn() {\n return <div>Hello<…' - Expected + Received function fn() { - return <div>Hello</div>; + return React.createElement( + value ? "a" : "div", + null, + "Hello", + ); } ❯ packages/unminify/src/transformations/__tests__/un-jsx.spec.ts:226:1 ❯ packages/test-utils/src/index.ts:32:22
check
Process completed with exit code 1.