test: update snapshot
This commit is contained in:
parent
eeb93daa3c
commit
eb68fd42d9
|
|
@ -42,6 +42,7 @@
|
||||||
"pub:next": "pnpm build && pnpm publish --no-git-checks --access public --tag next",
|
"pub:next": "pnpm build && pnpm publish --no-git-checks --access public --tag next",
|
||||||
"pub:release": "pnpm build && pnpm publish --no-git-checks --access public",
|
"pub:release": "pnpm build && pnpm publish --no-git-checks --access public",
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
|
"test:update": "vitest run -u",
|
||||||
"test:ui": "vitest --ui"
|
"test:ui": "vitest --ui"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
|
|
@ -3,20 +3,44 @@
|
||||||
exports[`transform css vars 1`] = `
|
exports[`transform css vars 1`] = `
|
||||||
"<script setup lang=\\"ts\\"></script>
|
"<script setup lang=\\"ts\\"></script>
|
||||||
<template>
|
<template>
|
||||||
<div class=\\"bg-background hover:bg-muted text-primary-foreground sm:focus:text-accent-foreground\\">foo</div>
|
<div
|
||||||
</template>\\""
|
class=\\"bg-background hover:bg-muted text-primary-foreground sm:focus:text-accent-foreground\\"
|
||||||
|
>
|
||||||
|
foo
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
\\"
|
||||||
|
"
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`transform css vars 2`] = `
|
exports[`transform css vars 2`] = `
|
||||||
"<script setup lang=\\"ts\\"></script>
|
"<script setup lang=\\"ts\\"></script>
|
||||||
<template>
|
<template>
|
||||||
<div class=\\"bg-white hover:bg-stone-100 text-stone-50 sm:focus:text-stone-900 dark:bg-stone-950 dark:hover:bg-stone-800 dark:text-stone-900 dark:sm:focus:text-stone-50\\">foo</div>
|
<div
|
||||||
</template>\\""
|
class=\\"bg-white hover:bg-stone-100 text-stone-50 sm:focus:text-stone-900 dark:bg-stone-950 dark:hover:bg-stone-800 dark:text-stone-900 dark:sm:focus:text-stone-50\\"
|
||||||
|
>
|
||||||
|
foo
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
\\"
|
||||||
|
"
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`transform css vars 3`] = `
|
exports[`transform css vars 3`] = `
|
||||||
"<script setup lang=\\"ts\\"></script>
|
"<script setup lang=\\"ts\\"></script>
|
||||||
<template>
|
<template>
|
||||||
<div :class=\\"cn('bg-white hover:bg-stone-100 dark:bg-stone-950 dark:hover:bg-stone-800', true && 'text-stone-50 sm:focus:text-stone-900 dark:text-stone-900 dark:sm:focus:text-stone-50')\\">foo</div>
|
<div
|
||||||
</template>\\""
|
:class=\\"
|
||||||
|
cn(
|
||||||
|
'bg-white hover:bg-stone-100 dark:bg-stone-950 dark:hover:bg-stone-800',
|
||||||
|
true &&
|
||||||
|
'text-stone-50 sm:focus:text-stone-900 dark:text-stone-900 dark:sm:focus:text-stone-50',
|
||||||
|
)
|
||||||
|
\\"
|
||||||
|
>
|
||||||
|
foo
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
\\"
|
||||||
|
"
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,22 @@
|
||||||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
||||||
|
|
||||||
exports[`transform import 1`] = `
|
exports[`transform import 1`] = `
|
||||||
"import { Foo } from \\"bar\\"
|
"import { Foo } from \\"bar\\" import { Button } from \\"@/components/ui/button\\" import
|
||||||
import { Button } from \\"@/components/ui/button\\"
|
{ Label} from \\"ui/label\\" import { Box } from \\"@/components/box\\" import { cn }
|
||||||
import { Label} from \\"ui/label\\"
|
from \\"@/lib/utils\\"
|
||||||
import { Box } from \\"@/components/box\\"
|
"
|
||||||
|
|
||||||
import { cn } from \\"@/lib/utils\\"
|
|
||||||
"
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`transform import 2`] = `
|
exports[`transform import 2`] = `
|
||||||
"import { Foo } from \\"bar\\"
|
"import { Foo } from \\"bar\\" import { Button } from \\"~/src/components/ui/button\\"
|
||||||
import { Button } from \\"~/src/components/ui/button\\"
|
import { Label} from \\"ui/label\\" import { Box } from \\"~/src/components/box\\"
|
||||||
import { Label} from \\"ui/label\\"
|
import { cn, foo, bar } from \\"~/lib\\" import { bar } from \\"@/lib/utils/bar\\"
|
||||||
import { Box } from \\"~/src/components/box\\"
|
"
|
||||||
|
|
||||||
import { cn, foo, bar } from \\"~/lib\\"
|
|
||||||
import { bar } from \\"@/lib/utils/bar\\"
|
|
||||||
"
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`transform import 3`] = `
|
exports[`transform import 3`] = `
|
||||||
"import { Foo } from \\"bar\\"
|
"import { Foo } from \\"bar\\" import { Button } from \\"~/src/components/ui/button\\"
|
||||||
import { Button } from \\"~/src/components/ui/button\\"
|
import { Label} from \\"ui/label\\" import { Box } from \\"~/src/components/box\\"
|
||||||
import { Label} from \\"ui/label\\"
|
import { cn } from \\"~/src/utils\\" import { bar } from \\"@/lib/utils/bar\\"
|
||||||
import { Box } from \\"~/src/components/box\\"
|
"
|
||||||
|
|
||||||
import { cn } from \\"~/src/utils\\"
|
|
||||||
import { bar } from \\"@/lib/utils/bar\\"
|
|
||||||
"
|
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@ const props = defineProps({
|
||||||
a: { type: String, required: true },
|
a: { type: String, required: true },
|
||||||
b: { type: Number, required: true },
|
b: { type: Number, required: true },
|
||||||
});
|
});
|
||||||
export {};
|
|
||||||
</script>
|
</script>
|
||||||
"
|
"
|
||||||
`;
|
`;
|
||||||
|
|
@ -49,7 +48,6 @@ const props = defineProps({
|
||||||
asChild: { type: Boolean, required: false },
|
asChild: { type: Boolean, required: false },
|
||||||
as: { type: null, required: false },
|
as: { type: null, required: false },
|
||||||
});
|
});
|
||||||
export {};
|
|
||||||
</script>
|
</script>
|
||||||
"
|
"
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user