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