Skip to content

fix(compiler-core): generate helper at the top level #10750

fix(compiler-core): generate helper at the top level

fix(compiler-core): generate helper at the top level #10750

Triggered via push May 17, 2024 12:14
Status Failure
Total duration 1m 33s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

20 errors
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist simple element: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L96
Error: Snapshot `compiler: hoistStatic transform > hoist simple element 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => (/*#__PURE__*/_createElementVNode("span", { class: "inline" }, "hello", -1 /* HOISTED */))) const _hoisted_2 = /*#__PURE__*/ _hoistLazy(() => ([ _hoisted_1() ])) ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:96:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist nested static tree: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L116
Error: Snapshot `compiler: hoistStatic transform > hoist nested static tree 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => (/*#__PURE__*/_createElementVNode("p", null, [ /*#__PURE__*/_createElementVNode("span"), /*#__PURE__*/_createElementVNode("span") ], -1 /* HOISTED */))) ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:116:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist nested static tree with comments: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L133
Error: Snapshot `compiler: hoistStatic transform > hoist nested static tree with comments 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode, createCommentVNode: _createCommentVNode } = _Vue + const { createElementVNode: _createElementVNode, createCommentVNode: _createCommentVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => (/*#__PURE__*/_createElementVNode("div", null, [ /*#__PURE__*/_createCommentVNode("comment") ], -1 /* HOISTED */))) const _hoisted_2 = /*#__PURE__*/ _hoistLazy(() => ([ ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:133:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist siblings with common non-hoistable parent: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L152
Error: Snapshot `compiler: hoistStatic transform > hoist siblings with common non-hoistable parent 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => (/*#__PURE__*/_createElementVNode("span", null, null, -1 /* HOISTED */))) const _hoisted_2 = /*#__PURE__*/ _hoistLazy(() => (/*#__PURE__*/_createElementVNode("div", null, null, -1 /* HOISTED */))) const _hoisted_3 = /*#__PURE__*/ _hoistLazy(() => ([ _hoisted_1(), ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:152:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > should NOT hoist element with dynamic props (but hoist the props list): packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L192
Error: Snapshot `compiler: hoistStatic transform > should NOT hoist element with dynamic props (but hoist the props list) 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => (["id"])) return function render(_ctx, _cache) { with (_ctx) { ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:192:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist element with static key: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L211
Error: Snapshot `compiler: hoistStatic transform > hoist element with static key 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => (/*#__PURE__*/_createElementVNode("div", { key: "foo" }, null, -1 /* HOISTED */))) const _hoisted_2 = /*#__PURE__*/ _hoistLazy(() => ([ _hoisted_1() ])) ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:211:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist static props for elements with directives: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L273
Error: Snapshot `compiler: hoistStatic transform > hoist static props for elements with directives 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => ({ id: "foo" })) return function render(_ctx, _cache) { with (_ctx) { ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:273:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist static props for elements with dynamic text children: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L293
Error: Snapshot `compiler: hoistStatic transform > hoist static props for elements with dynamic text children 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => ({ id: "foo" })) return function render(_ctx, _cache) { with (_ctx) { ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:293:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist static props for elements with unhoistable children: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L310
Error: Snapshot `compiler: hoistStatic transform > hoist static props for elements with unhoistable children 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createVNode: _createVNode, createElementVNode: _createElementVNode } = _Vue + const { createVNode: _createVNode, createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => ({ id: "foo" })) return function render(_ctx, _cache) { with (_ctx) { ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:310:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > should hoist v-if props/children if static: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L340
Error: Snapshot `compiler: hoistStatic transform > should hoist v-if props/children if static 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode, createCommentVNode: _createCommentVNode } = _Vue + const { createElementVNode: _createElementVNode, createCommentVNode: _createCommentVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => ({ key: 0, id: "foo" })) ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:340:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist simple element: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L96
Error: Snapshot `compiler: hoistStatic transform > hoist simple element 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => (/*#__PURE__*/_createElementVNode("span", { class: "inline" }, "hello", -1 /* HOISTED */))) const _hoisted_2 = /*#__PURE__*/ _hoistLazy(() => ([ _hoisted_1() ])) ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:96:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist nested static tree: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L116
Error: Snapshot `compiler: hoistStatic transform > hoist nested static tree 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => (/*#__PURE__*/_createElementVNode("p", null, [ /*#__PURE__*/_createElementVNode("span"), /*#__PURE__*/_createElementVNode("span") ], -1 /* HOISTED */))) ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:116:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist nested static tree with comments: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L133
Error: Snapshot `compiler: hoistStatic transform > hoist nested static tree with comments 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode, createCommentVNode: _createCommentVNode } = _Vue + const { createElementVNode: _createElementVNode, createCommentVNode: _createCommentVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => (/*#__PURE__*/_createElementVNode("div", null, [ /*#__PURE__*/_createCommentVNode("comment") ], -1 /* HOISTED */))) const _hoisted_2 = /*#__PURE__*/ _hoistLazy(() => ([ ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:133:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist siblings with common non-hoistable parent: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L152
Error: Snapshot `compiler: hoistStatic transform > hoist siblings with common non-hoistable parent 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => (/*#__PURE__*/_createElementVNode("span", null, null, -1 /* HOISTED */))) const _hoisted_2 = /*#__PURE__*/ _hoistLazy(() => (/*#__PURE__*/_createElementVNode("div", null, null, -1 /* HOISTED */))) const _hoisted_3 = /*#__PURE__*/ _hoistLazy(() => ([ _hoisted_1(), ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:152:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > should NOT hoist element with dynamic props (but hoist the props list): packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L192
Error: Snapshot `compiler: hoistStatic transform > should NOT hoist element with dynamic props (but hoist the props list) 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => (["id"])) return function render(_ctx, _cache) { with (_ctx) { ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:192:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist element with static key: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L211
Error: Snapshot `compiler: hoistStatic transform > hoist element with static key 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => (/*#__PURE__*/_createElementVNode("div", { key: "foo" }, null, -1 /* HOISTED */))) const _hoisted_2 = /*#__PURE__*/ _hoistLazy(() => ([ _hoisted_1() ])) ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:211:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist static props for elements with directives: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L273
Error: Snapshot `compiler: hoistStatic transform > hoist static props for elements with directives 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => ({ id: "foo" })) return function render(_ctx, _cache) { with (_ctx) { ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:273:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist static props for elements with dynamic text children: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L293
Error: Snapshot `compiler: hoistStatic transform > hoist static props for elements with dynamic text children 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode } = _Vue + const { createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => ({ id: "foo" })) return function render(_ctx, _cache) { with (_ctx) { ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:293:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > hoist static props for elements with unhoistable children: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L310
Error: Snapshot `compiler: hoistStatic transform > hoist static props for elements with unhoistable children 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createVNode: _createVNode, createElementVNode: _createElementVNode } = _Vue + const { createVNode: _createVNode, createElementVNode: _createElementVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => ({ id: "foo" })) return function render(_ctx, _cache) { with (_ctx) { ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:310:33
packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts > compiler: hoistStatic transform > should hoist v-if props/children if static: packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts#L340
Error: Snapshot `compiler: hoistStatic transform > should hoist v-if props/children if static 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ "const _Vue = Vue - const { createElementVNode: _createElementVNode, createCommentVNode: _createCommentVNode } = _Vue + const { createElementVNode: _createElementVNode, createCommentVNode: _createCommentVNode, hoistLazy: _hoistLazy } = _Vue const _hoisted_1 = /*#__PURE__*/ _hoistLazy(() => ({ key: 0, id: "foo" })) ❯ packages/compiler-core/__tests__/transforms/hoistStatic.spec.ts:340:33