first commit

This commit is contained in:
René Preuß committed 2023-02-17 19:57:37 +01:00
commit 23eae8b651
37 files changed
+6370

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { describe, it, expect } from 'vitest'
import { fileURLToPath } from 'node:url'
import { setup, $fetch } from '@nuxt/test-utils'
describe('ssr', async () => {
await setup({
rootDir: fileURLToPath(new URL('./fixtures/basic', import.meta.url)),
})
it('renders the index page', async () => {
// Get response to a server-rendered page with `$fetch`.
const html = await $fetch('/')
expect(html).toContain('<div>basic</div>')
})
})
+6
View File
@@ -0,0 +1,6 @@
<template>
<div>basic</div>
</template>
<script setup>
</script>
+7
View File
@@ -0,0 +1,7 @@
import MyModule from '../../../src/module'
export default defineNuxtConfig({
modules: [
MyModule
]
})
+5
View File
@@ -0,0 +1,5 @@
{
"private": true,
"name": "basic",
"type": "module"
}