initial commit
This commit is contained in:
commit
869be69d67
42 changed files with 11444 additions and 0 deletions
17
test/nuxt/component.test.ts
Normal file
17
test/nuxt/component.test.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { describe, expect, it } from 'vitest'
|
||||
import { mountSuspended } from '@nuxt/test-utils/runtime'
|
||||
import { defineComponent, h } from 'vue'
|
||||
|
||||
describe('component test example', () => {
|
||||
it('can mount components', async () => {
|
||||
const TestComponent = defineComponent({
|
||||
setup() {
|
||||
return () => h('div', 'Hello Nuxt!')
|
||||
},
|
||||
})
|
||||
|
||||
const component = await mountSuspended(TestComponent)
|
||||
|
||||
expect(component.text()).toBe('Hello Nuxt!')
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue