Skip to content

chore(deps): update vitest monorepo to v2 (major) #403

chore(deps): update vitest monorepo to v2 (major)

chore(deps): update vitest monorepo to v2 (major) #403

Triggered via pull request July 9, 2024 20:33
Status Failure
Total duration 44s
Artifacts

unit-test.yml

on: pull_request
unit-test_and_lint
35s
unit-test_and_lint
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 2 warnings
packages/core/inject/__test__/inject-css.spec.ts > inject-css > injectCssOnBuild: basic: packages/core/inject/__test__/inject-css.spec.ts#L112
Error: Snapshot `inject-css > injectCssOnBuild: basic 1` mismatched - Expected + Received " - <style lang=\"scss\" > + <style lang="scss" > body { background-color: black; } /* foo.scss -> test2.css -> test.css */ /* foo.scss -> test.scss -> test2.css */ - /*@import \"./assets/less/less-foo\";*/ + /*@import "./assets/less/less-foo";*/ div { color: v-bind(color) } </style>" ❯ packages/core/inject/__test__/inject-css.spec.ts:112:31
packages/core/inject/__test__/inject-css.spec.ts > inject-css > injectCssOnBuild: mutiple style tags: packages/core/inject/__test__/inject-css.spec.ts#L164
Error: Snapshot `inject-css > injectCssOnBuild: mutiple style tags 1` mismatched - Expected + Received " - <style lang=\"scss\" > + <style lang="scss" > body { background-color: black; } /* foo.scss -> test2.css -> test.css */ /* foo.scss -> test.scss -> test2.css */ - /*@import \"./assets/less/less-foo\";*/ + /*@import "./assets/less/less-foo";*/ div { color: v-bind(color) } </style> - <style lang=\"scss\" > + <style lang="scss" > .el-popup-parent--hidden { .fixed-header { padding-right: 17px; } } </style> " ❯ packages/core/inject/__test__/inject-css.spec.ts:164:31
packages/core/inject/__test__/inject-css.spec.ts > inject-css > injectCssOnBuild: no lang: packages/core/inject/__test__/inject-css.spec.ts#L215
Error: Snapshot `inject-css > injectCssOnBuild: no lang 1` mismatched - Expected + Received " - <style lang=\"css\" > + <style lang="css" > body { background-color: black; } /* foo.scss -> test2.css -> test.css */ /* foo.scss -> test.scss -> test2.css */ - /*@import \"./assets/less/less-foo\";*/ + /*@import "./assets/less/less-foo";*/ div { color: v-bind(color) } </style>" ❯ packages/core/inject/__test__/inject-css.spec.ts:215:31
packages/core/inject/__test__/inject-cssvars.spec.ts > inject-cssvars > injectUseCssVarsOption > hasUseCssVars is false: packages/core/inject/__test__/inject-cssvars.spec.ts#L184
Error: Snapshot `inject-cssvars > injectUseCssVarsOption > hasUseCssVars is false 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ - "import { useCssVars as _useCssVars } from \"vue\" - import { unref as _unref } from \"vue\" + "import { useCssVars as _useCssVars } from "vue" + import { unref as _unref } from "vue" const __default__ = {};const __injectCSSVars__ = () => {} const __setup__ = __default__.setup __default__.setup = __setup__ ? (props, ctx) => { __injectCSSVars__(); return __setup__(props, ctx) } ❯ packages/core/inject/__test__/inject-cssvars.spec.ts:184:33
packages/core/inject/__test__/inject-cssvars.spec.ts > inject-cssvars > injectUseCssVarsOption > hasUseCssVars is true: packages/core/inject/__test__/inject-cssvars.spec.ts#L208
Error: Snapshot `inject-cssvars > injectUseCssVarsOption > hasUseCssVars is true 1` mismatched - Expected + Received @@ -1,12 +1,12 @@ - "import { unref as _unref } from \"vue\" + "import { unref as _unref } from "vue" import { useCssVars as _useCssVars } from 'vue' const __injectCSSVars__ = () => { _useCssVars(_ctx => ({ - \"color\": (_ctx.color), + "color": (_ctx.color), - \"229090c3-sassColor\": (_ctx.sassColor) + "229090c3-sassColor": (_ctx.sassColor) }))} const __setup__ = __default__.setup __default__.setup = __setup__ ? (props, ctx) => { __injectCSSVars__();return __setup__(props, ctx) } : __injectCSSVars__ ❯ packages/core/inject/__test__/inject-cssvars.spec.ts:208:33
packages/core/inject/__test__/inject-cssvars.spec.ts > inject-cssvars > injectUseCssVarsSetup > hasUseCssVars is true: packages/core/inject/__test__/inject-cssvars.spec.ts#L225
Error: Snapshot `inject-cssvars > injectUseCssVarsSetup > hasUseCssVars is true 1` mismatched - Expected + Received - "import { unref as _unref } from \"vue\" - function setup() { _useCssVars((_ctx) => ({\"1439c43b\": color.value, - \"229090c3-sassColor\": sassColor.value + "import { unref as _unref } from "vue" + function setup() { _useCssVars((_ctx) => ({"1439c43b": color.value, + "229090c3-sassColor": sassColor.value })); }" ❯ packages/core/inject/__test__/inject-cssvars.spec.ts:225:36
packages/core/inject/__test__/inject-cssvars.spec.ts > inject-cssvars > injectUseCssVarsSetup > hasUseCssVars is false: packages/core/inject/__test__/inject-cssvars.spec.ts#L240
Error: Snapshot `inject-cssvars > injectUseCssVarsSetup > hasUseCssVars is false 1` mismatched - Expected + Received - "import { useCssVars as _useCssVars } from \"vue\" - import { unref as _unref } from \"vue\" + "import { useCssVars as _useCssVars } from "vue" + import { unref as _unref } from "vue" function setup() { _useCssVars((_ctx) => ({ - \"1439c43b\": color.value, + "1439c43b": color.value, }));}" ❯ packages/core/inject/__test__/inject-cssvars.spec.ts:240:36
packages/core/runtime/__test__/handle-inject-css.spec.ts > handle inject css > handleInjectCss: basic: packages/core/runtime/__test__/handle-inject-css.spec.ts#L26
Error: Snapshot `handle inject css > handleInjectCss: basic 1` mismatched - Expected + Received @@ -1,21 +1,21 @@ - "import { useCssVars as _useCssVars } from \"vue\" - import { unref as _unref } from \"vue\" + "import { useCssVars as _useCssVars } from "vue" + import { unref as _unref } from "vue" import { createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, createVNode as _createVNode, defineComponent as _defineComponent, openBlock as _openBlock, popScopeId as _popScopeId, pushScopeId as _pushScopeId, reactive, ref } from 'vue' import Comp from '../../comp.vue' import Comp2 from '../../comp2.vue' import 'D:/project-github/unplugin-vue-cssvars/play/vite/src/views/app/App.vue?vue&type=style&index=0&scoped=229090c3&lang.scss' - import _export_sfc from '\\0plugin-vue:export-helper' + import _export_sfc from '\0plugin-vue:export-helper' const _sfc_main = /* @__PURE__ */ _defineComponent({ __name: 'App', setup(__props, { expose }) { _useCssVars((_ctx) => ({ - \"1439c43b\": color.value, - \"13a7bca6\": sassColor.value, + "1439c43b": color.value, + "13a7bca6": sassColor.value, })); expose() const color = ref('blue') const appAsd = () => 'red' const fooColor = appAsd() ❯ packages/core/runtime/__test__/handle-inject-css.spec.ts:26:28
unit-test_and_lint
Process completed with exit code 1.
unit-test_and_lint
The following actions uses Node.js version which is deprecated and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
unit-test_and_lint: vertify-commit.js#L12
Unexpected console statement