From 6dfdaf0acc6f38267cd4d98f3cd2e7fcc7673f5f Mon Sep 17 00:00:00 2001 From: AdrianGonz97 <31664583+AdrianGonz97@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:26:03 -0500 Subject: [PATCH] test --- .../addons/_tests/sveltekit-adapter/test.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/addons/_tests/sveltekit-adapter/test.ts diff --git a/packages/addons/_tests/sveltekit-adapter/test.ts b/packages/addons/_tests/sveltekit-adapter/test.ts new file mode 100644 index 00000000..ffdf6a4f --- /dev/null +++ b/packages/addons/_tests/sveltekit-adapter/test.ts @@ -0,0 +1,17 @@ +import { expect } from '@playwright/test'; +import { setupTest } from '../_setup/suite.ts'; +import sveltekitAdapter from '../../sveltekit-adapter/index.ts'; + +const addonId = sveltekitAdapter.id; +const { test, variants, prepareServer } = setupTest({ [addonId]: sveltekitAdapter }); + +const kitOnly = variants.filter((v) => v.includes('kit')); +test.concurrent.for(kitOnly)('core - %s', async (variant, { page, ...ctx }) => { + const cwd = await ctx.run(variant, { [addonId]: { adapter: 'node' } }); + + const { close } = await prepareServer({ cwd, page }); + // kill server process when we're done + ctx.onTestFinished(async () => await close()); + + expect(true).toBe(true); +});