feat: inline constant tag transformation #202
Annotations
2 errors
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 Componen…' to deeply equal 'const Foo = () => {\n const Componen…'
- Expected
+ Received
const Foo = () => {
const Component = g ? "p" : "div";
const Component_1 = r ? "a" : "div";
- return <div><div key="b">bar</div><div key={c}>baz</div></div>;
+ return <div><div key="b">bar</div><div key={c}>baz</div></div>;
};
❯ packages/unminify/src/transformations/__tests__/un-jsx.spec.ts:188:1
❯ packages/test-utils/src/index.ts:32:22
|
check
Process completed with exit code 1.
|