primevue-mirror/packages/nuxt-module/test/basic.test.ts

17 lines
491 B
TypeScript
Raw Normal View History

2024-06-11 12:21:12 +00:00
import { $fetch, setup } from '@nuxt/test-utils';
import { fileURLToPath } from 'node:url';
import { describe, expect, it } from 'vitest';
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>');
});
});