fix: update tsdown to version 0.9.5 and hookable to version 5.5.3 #299
Annotations
10 errors
|
test/transformCode.test.ts > less vue test > single.vue:
test/transformCode.test.ts#L89
Error: Snapshot `less vue test > single.vue 1` mismatched
- Expected
+ Received
@@ -3,12 +3,14 @@
<UsePinia />
<br />
<router-link to="/login">点击跳转至login</router-link>
</div>
</template>
+
<script lang="ts">
import { defineComponent } from 'vue';
+
export default defineComponent({
name: 'index',
components: {
},
setup() {
❯ test/transformCode.test.ts:89:63
|
|
test/transformCode.test.ts > single test > single.vue:
test/transformCode.test.ts#L81
Error: Snapshot `single test > single.vue 1` mismatched
- Expected
+ Received
@@ -25,19 +25,28 @@
</div>
</template>
<script lang="ts" setup>
import { formatDate } from '@/utils/formatTime'
import UserAvatar from './UserAvatar.vue'
+
import { getUserProfile, ProfileVO } from '@/api/system/user/profile'
+
defineOptions({ name: 'ProfileUser' })
+
const { t } = useI18n()
const userInfo = ref({} as ProfileVO)
const getUserInfo = async () => {
const users = await getUserProfile()
userInfo.value = users
}
onMounted(async () => {
await getUserInfo()
})
</script>
- <style scoped></style>
+
+ <style scoped>
+
+ .list-group-item {}
+
+ .pull-right {}
+ </style>
"
❯ test/transformCode.test.ts:81:63
|
|
test/transformCode.test.ts > single demo styleWeight > styleWeight.vue:
test/transformCode.test.ts#L73
Error: Snapshot `single demo styleWeight > styleWeight.vue 1` mismatched
- Expected
+ Received
"<script setup lang="ts"></script>
+
<template>
<div bg-pink style="hi:123" class="red">
nihao
</div>
<div bg-yellow class="yellow" >
hi
</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .red {}
+
+ </style>
"
❯ test/transformCode.test.ts:73:63
|
|
test/transformCode.test.ts > classSpace.vue > classSpace.vue:
test/transformCode.test.ts#L65
Error: Snapshot `classSpace.vue > classSpace.vue 1` mismatched
- Expected
+ Received
"<script setup lang="ts"></script>
+
<template>
<div bg-red w="[100%]" lh-20px class="red">
<div bg-red! w-[100%] class="yellow">
hi
</div>
</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .red .yellow {}
+ </style>
"
❯ test/transformCode.test.ts:65:63
|
|
test/transformCode.test.ts > single demo Media > Media.vue:
test/transformCode.test.ts#L57
Error: Snapshot `single demo Media > Media.vue 1` mismatched
- Expected
+ Received
@@ -5,12 +5,19 @@
nihao
</div>
</template>
<style scoped>
+ @media (min-width: 640px) {
+ .red {}
+ }
+
@media (min-width: 120px) {
.red {
background-color: red;
}
}
+ @media not all and (min-width: 1536px) {
+ .red {}
+ }
</style>
"
❯ test/transformCode.test.ts:57:63
|
|
test/transformCode.test.ts > single demo classTail > classTail.vue:
test/transformCode.test.ts#L49
Error: Snapshot `single demo classTail > classTail.vue 1` mismatched
- Expected
+ Received
"<script setup lang="ts"></script>
+
<template>
<div focus-within="bg-red w-[100%]" class="container">
<div bg-red w="[100%]" lh-20px class="red">
nihao
</div>
<div class="yellow">
hi
</div>
</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .container:focus-within {}
+ </style>
"
❯ test/transformCode.test.ts:49:63
|
|
test/transformCode.test.ts > single demo classCombine > classCombine.vue:
test/transformCode.test.ts#L41
Error: Snapshot `single demo classCombine > classCombine.vue 1` mismatched
- Expected
+ Received
"<script setup lang="ts"></script>
+
<template>
<div bg-red w="[100%]" lh-20px>
<div bg-red w-[100%] class="red yellow">
hi
</div>
</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .red.yellow {}
+ </style>
"
❯ test/transformCode.test.ts:41:63
|
|
test/transformCode.test.ts > single demo classWeight > classWeight.vue:
test/transformCode.test.ts#L33
Error: Snapshot `single demo classWeight > classWeight.vue 1` mismatched
- Expected
+ Received
"<script setup lang="ts">
const nihao = ref(true)
</script>
+
<template>
<div class="red h-[100%] scale-150 bg-yellow w-[100%]" :class="[nihao?'w-10':'bg-red']">
nihao
</div>
<div>hi</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .red {}
+
+ div.red {}
+ </style>
"
❯ test/transformCode.test.ts:33:74
|
|
test/transformCode.test.ts > transformCode > transformCode: all:
test/transformCode.test.ts#L25
Error: Snapshot `transformCode > transformCode: all 1` mismatched
- Expected
+ Received
@@ -2,19 +2,26 @@
"
----- classAdd.vue -------
<script setup lang="ts"></script>
+
<template>
<div bg-red w="[100%]" lh-20px class="red">
nihao
</div>
<div bg-yellow! w-[100%] h-[100%] class="yellow">
hi
</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .red + .yellow {}
+
+ .red + div {}
+ </style>
",
"
----- classAttribute.vue -------
@@ -28,88 +35,122 @@
hi
</div>
</template>
<style scoped>
+
.red[haha] {
background-color: red;
}
+
+ .red[class='red'] {}
+
+ .red[name='hi'] {}
+
+ .red + div {}
</style>
",
"
----- classChild.vue -------
<script setup lang="ts"></script>
+
<template>
<div bg-red w="[100%]" lh-20px class="red">
<div bg-red w-[100%] class="yellow">
hi
</div>
</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .red > .yellow {}
+ </style>
",
"
----- classCombine.vue -------
<script setup lang="ts"></script>
+
<template>
<div bg-red w="[100%]" lh-20px>
<div bg-red w-[100%] class="red yellow">
hi
</div>
</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .red.yellow {}
+ </style>
",
"
----- classSpace.vue -------
<script setup lang="ts"></script>
+
<template>
<div bg-red w="[100%]" lh-20px class="red">
<div bg-red! w-[100%] class="yellow">
hi
</div>
</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .red .yellow {}
+ </style>
",
"
----- classTail.vue -------
<script setup lang="ts"></script>
+
<template>
<div focus-within="bg-red w-[100%]" class="container">
<div bg-red w="[100%]" lh-20px class="red">
nihao
</div>
<div class="yellow">
hi
</div>
</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .container:focus-within {}
+ </style>
",
"
----- classWeight.vue -------
<script setup lang="ts">
const nihao = ref(true)
</script>
+
<template>
<div bg-yellow w-[100%] h="[100%]" scale="150" class="red" :class="[nihao?'w-10':'bg-red']">
nihao
</div>
<div>hi</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .red {}
+
+ div.red {}
+ </style>
",
"
----- demo1.vue -------
@@ -893,18 +934,23 @@
"
----- hover.vue -------
<script setup lang="ts"></script>
+
<template>
<div bg-red w="[100%]" lh-20px>
<div hover="text-yellow" class="red">
hi
</div>
</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .red:hover {}
+ </style>
",
"
----- less.vue -------
@@ -913,12 +959,14 @@
<UsePinia />
<br />
<router-link to="/login">点击跳转至login</router-link>
</div>
</template>
+
<script lang="ts">
import { defineComponent } from 'vue';
+
export default defineComponent({
name: 'index',
components: {
},
setup() {
@@ -944,15 +992,22 @@
nihao
</div>
</template>
<style scoped>
+ @media (min-width: 640px) {
+ .red {}
+ }
+
@media (min-width: 120px) {
.red {
background-color: red;
}
}
+ @media not all and (min-width: 1536px) {
+ .red {}
+ }
</style>
",
"
----- sass.vue -------
@@ -987,34 +1042,45 @@
"
----- styleMaxWidth.vue -------
<script setup lang="ts"></script>
+
<template>
<div class="red">
nihao
</div>
<div max-w-[calc(100%-50px)] bg-[rgba(255,62,0,0.1)] class="yellow">
hi
</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .red + div {}
+ </style>
",
"
----- styleWeight.vue -------
<script setup lang="ts"></script>
+
<template>
<div bg-pink style="hi:123" class="red">
nihao
</div>
<div bg-yellow class="yellow" >
hi
</div>
</template>
- <style scoped></style>
+
+ <style scoped>
+
+ .red {}
+
+ </style>
",
|
|
test/transformAstro.test.ts > accent > accent-color: inherit;:
test/transformAstro.test.ts#L11
Error: Snapshot `accent > accent-color: inherit; 1` mismatched
- Expected
+ Received
"---
export const prerender = true;
---
+
<main>
<h1 class="red text-20px">hi </h1>
</main>
+
+
+ .red{}
+
"
❯ test/transformAstro.test.ts:11:40
|