Skip to content

fix(compiler-vapor): properly cache variable used in object shorthand #14779

fix(compiler-vapor): properly cache variable used in object shorthand

fix(compiler-vapor): properly cache variable used in object shorthand #14779

Triggered via push February 7, 2025 00:27
Status Failure
Total duration 1m 30s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

14 errors
packages/compiler-vapor/__tests__/transforms/vBind.spec.ts > compiler v-bind > attributes must be set as attribute: packages/compiler-vapor/__tests__/transforms/vBind.spec.ts#L611
Error: Snapshot `compiler v-bind > attributes must be set as attribute 1` mismatched - Expected + Received @@ -22,16 +22,16 @@ _setAttr(n0, "draggable", _ctx.draggable) _setAttr(n0, "translate", _ctx.translate) _setAttr(n0, "form", _ctx.form) _setAttr(n1, "list", _ctx.list) _setAttr(n2, "type", _ctx.type) - + _setAttr(n3, "width", _width) _setAttr(n4, "width", _width) _setAttr(n5, "width", _width) _setAttr(n6, "width", _width) - + _setAttr(n3, "height", _height) _setAttr(n4, "height", _height) _setAttr(n5, "height", _height) _setAttr(n6, "height", _height) }) ❯ packages/compiler-vapor/__tests__/transforms/vBind.spec.ts:611:18
packages/compiler-vapor/__tests__/transforms/vBind.spec.ts > cache multiple access > repeated variables: packages/compiler-vapor/__tests__/transforms/vBind.spec.ts#L704
Error: Snapshot `cache multiple access > repeated variables 1` mismatched - Expected + Received @@ -4,11 +4,11 @@ export function render(_ctx) { const n0 = t0() const n1 = t0() _renderEffect(() => { const _foo = _ctx.foo - + _setClass(n0, _foo) _setClass(n1, _foo) }) return [n0, n1] }" ❯ packages/compiler-vapor/__tests__/transforms/vBind.spec.ts:704:18
packages/compiler-vapor/__tests__/transforms/vBind.spec.ts > cache multiple access > repeated expressions: packages/compiler-vapor/__tests__/transforms/vBind.spec.ts#L715
Error: Snapshot `cache multiple access > repeated expressions 1` mismatched - Expected + Received @@ -4,11 +4,11 @@ export function render(_ctx) { const n0 = t0() const n1 = t0() _renderEffect(() => { const _foo_bar = _ctx.foo + _ctx.bar - + _setProp(n0, "id", _foo_bar) _setProp(n1, "id", _foo_bar) }) return [n0, n1] }" ❯ packages/compiler-vapor/__tests__/transforms/vBind.spec.ts:715:18
packages/compiler-vapor/__tests__/transforms/vBind.spec.ts > cache multiple access > repeated expression in expressions: packages/compiler-vapor/__tests__/transforms/vBind.spec.ts#L738
Error: Snapshot `cache multiple access > repeated expression in expressions 1` mismatched - Expected + Received @@ -6,11 +6,11 @@ const n1 = t0() const n2 = t0() _renderEffect(() => { const _foo = _ctx.foo const _foo_bar = _foo + _ctx.bar - + _setProp(n0, "id", _foo_bar) _setProp(n1, "id", _foo_bar) _setProp(n2, "id", _foo + _foo_bar) }) return [n0, n1, n2] ❯ packages/compiler-vapor/__tests__/transforms/vBind.spec.ts:738:18
packages/compiler-vapor/__tests__/transforms/vBind.spec.ts > cache multiple access > function calls with arguments: packages/compiler-vapor/__tests__/transforms/vBind.spec.ts#L750
Error: Snapshot `cache multiple access > function calls with arguments 1` mismatched - Expected + Received @@ -7,11 +7,11 @@ const n2 = t0() _renderEffect(() => { const _foo = _ctx.foo const _bar = _ctx.bar const _foo_bar_baz = _foo[_bar(_ctx.baz)] - + _setProp(n0, "id", _foo_bar_baz) _setProp(n1, "id", _foo_bar_baz) _setProp(n2, "id", _bar() + _foo) }) return [n0, n1, n2] ❯ packages/compiler-vapor/__tests__/transforms/vBind.spec.ts:750:18
packages/compiler-vapor/__tests__/transforms/vBind.spec.ts > cache multiple access > object property chain access: packages/compiler-vapor/__tests__/transforms/vBind.spec.ts#L771
Error: Snapshot `cache multiple access > object property chain access 1` mismatched - Expected + Received @@ -5,11 +5,11 @@ const n0 = t0() const n1 = t0() _renderEffect(() => { const _obj = _ctx.obj const _obj_foo_baz_obj_bar = _obj['foo']['baz'] + _obj.bar - + _setProp(n0, "id", _obj_foo_baz_obj_bar) _setProp(n1, "id", _obj_foo_baz_obj_bar) }) return [n0, n1] }" ❯ packages/compiler-vapor/__tests__/transforms/vBind.spec.ts:771:18
test / unit-test
Process completed with exit code 1.
packages/compiler-vapor/__tests__/transforms/vBind.spec.ts > compiler v-bind > attributes must be set as attribute: packages/compiler-vapor/__tests__/transforms/vBind.spec.ts#L611
Error: Snapshot `compiler v-bind > attributes must be set as attribute 1` mismatched - Expected + Received @@ -22,16 +22,16 @@ _setAttr(n0, "draggable", _ctx.draggable) _setAttr(n0, "translate", _ctx.translate) _setAttr(n0, "form", _ctx.form) _setAttr(n1, "list", _ctx.list) _setAttr(n2, "type", _ctx.type) - + _setAttr(n3, "width", _width) _setAttr(n4, "width", _width) _setAttr(n5, "width", _width) _setAttr(n6, "width", _width) - + _setAttr(n3, "height", _height) _setAttr(n4, "height", _height) _setAttr(n5, "height", _height) _setAttr(n6, "height", _height) }) ❯ packages/compiler-vapor/__tests__/transforms/vBind.spec.ts:611:18
packages/compiler-vapor/__tests__/transforms/vBind.spec.ts > cache multiple access > repeated variables: packages/compiler-vapor/__tests__/transforms/vBind.spec.ts#L704
Error: Snapshot `cache multiple access > repeated variables 1` mismatched - Expected + Received @@ -4,11 +4,11 @@ export function render(_ctx) { const n0 = t0() const n1 = t0() _renderEffect(() => { const _foo = _ctx.foo - + _setClass(n0, _foo) _setClass(n1, _foo) }) return [n0, n1] }" ❯ packages/compiler-vapor/__tests__/transforms/vBind.spec.ts:704:18
packages/compiler-vapor/__tests__/transforms/vBind.spec.ts > cache multiple access > repeated expressions: packages/compiler-vapor/__tests__/transforms/vBind.spec.ts#L715
Error: Snapshot `cache multiple access > repeated expressions 1` mismatched - Expected + Received @@ -4,11 +4,11 @@ export function render(_ctx) { const n0 = t0() const n1 = t0() _renderEffect(() => { const _foo_bar = _ctx.foo + _ctx.bar - + _setProp(n0, "id", _foo_bar) _setProp(n1, "id", _foo_bar) }) return [n0, n1] }" ❯ packages/compiler-vapor/__tests__/transforms/vBind.spec.ts:715:18
packages/compiler-vapor/__tests__/transforms/vBind.spec.ts > cache multiple access > repeated expression in expressions: packages/compiler-vapor/__tests__/transforms/vBind.spec.ts#L738
Error: Snapshot `cache multiple access > repeated expression in expressions 1` mismatched - Expected + Received @@ -6,11 +6,11 @@ const n1 = t0() const n2 = t0() _renderEffect(() => { const _foo = _ctx.foo const _foo_bar = _foo + _ctx.bar - + _setProp(n0, "id", _foo_bar) _setProp(n1, "id", _foo_bar) _setProp(n2, "id", _foo + _foo_bar) }) return [n0, n1, n2] ❯ packages/compiler-vapor/__tests__/transforms/vBind.spec.ts:738:18
packages/compiler-vapor/__tests__/transforms/vBind.spec.ts > cache multiple access > function calls with arguments: packages/compiler-vapor/__tests__/transforms/vBind.spec.ts#L750
Error: Snapshot `cache multiple access > function calls with arguments 1` mismatched - Expected + Received @@ -7,11 +7,11 @@ const n2 = t0() _renderEffect(() => { const _foo = _ctx.foo const _bar = _ctx.bar const _foo_bar_baz = _foo[_bar(_ctx.baz)] - + _setProp(n0, "id", _foo_bar_baz) _setProp(n1, "id", _foo_bar_baz) _setProp(n2, "id", _bar() + _foo) }) return [n0, n1, n2] ❯ packages/compiler-vapor/__tests__/transforms/vBind.spec.ts:750:18
packages/compiler-vapor/__tests__/transforms/vBind.spec.ts > cache multiple access > object property chain access: packages/compiler-vapor/__tests__/transforms/vBind.spec.ts#L771
Error: Snapshot `cache multiple access > object property chain access 1` mismatched - Expected + Received @@ -5,11 +5,11 @@ const n0 = t0() const n1 = t0() _renderEffect(() => { const _obj = _ctx.obj const _obj_foo_baz_obj_bar = _obj['foo']['baz'] + _obj.bar - + _setProp(n0, "id", _obj_foo_baz_obj_bar) _setProp(n1, "id", _obj_foo_baz_obj_bar) }) return [n0, n1] }" ❯ packages/compiler-vapor/__tests__/transforms/vBind.spec.ts:771:18
test / unit-test-windows
Process completed with exit code 1.