chore: StackGuard
All checks were successful
CI / cache-and-install (push) Successful in 55s

This commit is contained in:
严浩
2024-08-10 16:41:48 +08:00
parent 0afdfc5d2c
commit d0ba655182
16 changed files with 251 additions and 181 deletions

View File

@ -1,7 +1,7 @@
<script setup lang="ts">
defineProps<{
msg: string
}>()
msg: string;
}>();
</script>
<template>

View File

@ -1,11 +1,11 @@
import { describe, it, expect } from 'vitest'
import { describe, it, expect } from 'vitest';
import { mount } from '@vue/test-utils'
import HelloWorld from '../HelloWorld.vue'
import { mount } from '@vue/test-utils';
import HelloWorld from '../HelloWorld.vue';
describe('HelloWorld', () => {
it('renders properly', () => {
const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } })
expect(wrapper.text()).toContain('Hello Vitest')
})
})
const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } });
expect(wrapper.text()).toContain('Hello Vitest');
});
});