diff --git a/package.json b/package.json index e2f1622..1011d2d 100644 --- a/package.json +++ b/package.json @@ -5,17 +5,15 @@ "repository": "github:huntabyte/vaul-svelte", "scripts": { "dev": "vite dev", - "build": "vite build && npm run package", + "build": "vite build && pnpm run package", "preview": "vite preview", "package": "svelte-kit sync && svelte-package && publint", - "prepublishOnly": "npm run package", - "test": "npm run test:integration && npm run test:unit", + "prepublishOnly": "pnpm run package", + "test": "vitest", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "lint": "prettier --check . && eslint .", "format": "prettier --write .", - "test:integration": "playwright test", - "test:unit": "vitest", "release": "changeset publish", "changeset": "changeset" }, diff --git a/src/lib/vaul/components/root.svelte b/src/lib/vaul/components/root.svelte index 200a7ca..d665ead 100644 --- a/src/lib/vaul/components/root.svelte +++ b/src/lib/vaul/components/root.svelte @@ -20,7 +20,6 @@ const { states: { keyboardIsOpen }, methods: { closeDrawer, openDrawer }, - refs: { drawerRef }, options: { dismissible }, updateOption } = setCtx({ @@ -42,8 +41,6 @@ shouldScaleBackground }); - $: drawerEl = $drawerRef as HTMLElement; - $: updateOption('modal', modal); $: updateOption('closeThreshold', closeThreshold); $: updateOption('scrollLockTimeout', scrollLockTimeout); diff --git a/tests/test.ts b/tests/test.ts deleted file mode 100644 index 5816be4..0000000 --- a/tests/test.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { expect, test } from '@playwright/test'; - -test('index page has expected h1', async ({ page }) => { - await page.goto('/'); - await expect(page.getByRole('heading', { name: 'Welcome to SvelteKit' })).toBeVisible(); -});