Skip to content

feat: inline constant tag transformation #207

feat: inline constant tag transformation

feat: inline constant tag transformation #207

Triggered via pull request May 1, 2024 08:55
Status Failure
Total duration 55s
Artifacts

check.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
packages/unminify/src/transformations/__tests__/un-jsx.spec.ts > jsx with dynamic Component tag #5: packages/unminify/src/transformations/__tests__/un-jsx.spec.ts#L228
AssertionError: expected 'function fn() {\n const value = ""\n…' to deeply equal 'function fn() {\n const value = ""\n…' - Expected + Received function fn() { const value = "" const Component = value ? "a" : "div"; - return <a>Hello</a>; + return <div>Hello</div>; } ❯ packages/unminify/src/transformations/__tests__/un-jsx.spec.ts:228:1 ❯ packages/test-utils/src/index.ts:32:22
packages/unminify/src/transformations/__tests__/un-jsx.spec.ts > jsx with dynamic Component tag #6: packages/unminify/src/transformations/__tests__/un-jsx.spec.ts#L248
AssertionError: expected 'function fn() {\n const Name = "div"…' to deeply equal 'function fn() {\n const Name = "div"…' - Expected + Received function fn() { const Name = "div"; - const attrs = { id: "x" }; + const attrs = {id: "x"}; return <div {...attrs} />; } ❯ packages/unminify/src/transformations/__tests__/un-jsx.spec.ts:248:1 ❯ packages/test-utils/src/index.ts:32:22
check
Process completed with exit code 1.