From 18ea3ae7093a6660e4c08780ab1b119d59801f65 Mon Sep 17 00:00:00 2001 From: angelo Date: Wed, 15 Nov 2023 00:31:21 +0100 Subject: [PATCH] test: :fire: remove standard tests --- test/basic.test.ts | 15 --------------- test/fixtures/basic/app.vue | 6 ------ test/fixtures/basic/nuxt.config.ts | 7 ------- test/fixtures/basic/package.json | 5 ----- 4 files changed, 33 deletions(-) delete mode 100644 test/basic.test.ts delete mode 100644 test/fixtures/basic/app.vue delete mode 100644 test/fixtures/basic/nuxt.config.ts delete mode 100644 test/fixtures/basic/package.json diff --git a/test/basic.test.ts b/test/basic.test.ts deleted file mode 100644 index c4735db..0000000 --- a/test/basic.test.ts +++ /dev/null @@ -1,15 +0,0 @@ -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('
basic
') - }) -}) diff --git a/test/fixtures/basic/app.vue b/test/fixtures/basic/app.vue deleted file mode 100644 index 29a9c81..0000000 --- a/test/fixtures/basic/app.vue +++ /dev/null @@ -1,6 +0,0 @@ - - - diff --git a/test/fixtures/basic/nuxt.config.ts b/test/fixtures/basic/nuxt.config.ts deleted file mode 100644 index 1bc2f7c..0000000 --- a/test/fixtures/basic/nuxt.config.ts +++ /dev/null @@ -1,7 +0,0 @@ -import MyModule from '../../../src/module' - -export default defineNuxtConfig({ - modules: [ - MyModule - ] -}) diff --git a/test/fixtures/basic/package.json b/test/fixtures/basic/package.json deleted file mode 100644 index decd433..0000000 --- a/test/fixtures/basic/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "private": true, - "name": "basic", - "type": "module" -}