shadcn-vue/packages/cli/test/utils/__snapshots__/transform-sfc.test.ts.snap
2023-10-25 14:51:22 +08:00

40 lines
696 B
Plaintext

// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`transformSFC > basic 1`] = `
"<script setup>
const array = [1, 2, 3];
</script>
<template>
<div v-bind=\\"{ array }\\">template</div>
</template>
<style scoped></style>
"
`;
exports[`transformSFC > defineEmits 1`] = `
"<script setup>
const emit = defineEmits([\\"foo\\"]);
</script>
"
`;
exports[`transformSFC > defineProps 1`] = `
"<script setup>
const defineProps({
foo: { type: String, required: true }
});
</script>
"
`;
exports[`transformSFC > defineProps with withDefaults 1`] = `
"<script setup>
const props = defineProps({
foo: { type: String, required: true, default: \\"bar\\" },
});
</script>
"
`;