diff --git a/resources/assets/js/components/ui/Btn.spec.ts b/resources/assets/js/components/ui/Btn.spec.ts new file mode 100644 index 00000000..0b2837dc --- /dev/null +++ b/resources/assets/js/components/ui/Btn.spec.ts @@ -0,0 +1,15 @@ +import { expect, it } from 'vitest' +import ComponentTestCase from '@/__tests__/ComponentTestCase' +import Btn from './Btn.vue' + +new class extends ComponentTestCase { + protected test () { + it('renders', () => { + expect(this.render(Btn, { + slots: { + default: 'Click Me Nao' + } + }).html()).toMatchSnapshot() + }) + } +} diff --git a/resources/assets/js/components/ui/__snapshots__/Btn.spec.ts.snap b/resources/assets/js/components/ui/__snapshots__/Btn.spec.ts.snap new file mode 100644 index 00000000..7480ff02 --- /dev/null +++ b/resources/assets/js/components/ui/__snapshots__/Btn.spec.ts.snap @@ -0,0 +1,3 @@ +// Vitest Snapshot v1 + +exports[`renders 1`] = `""`;