diff --git a/apps/analytics-web/app/api/event/route.test.ts b/apps/analytics-web/app/api/event/route.test.ts index 0a13c3a1..141b275d 100644 --- a/apps/analytics-web/app/api/event/route.test.ts +++ b/apps/analytics-web/app/api/event/route.test.ts @@ -1,6 +1,5 @@ import { describe, expect, vi, it, afterEach } from "vitest"; import { testApiHandler } from "next-test-api-route-handler"; -import insertEvent from "~/db/insertEvent"; import * as appHandler from "./route"; import { analyticsEvent } from "@codaco/analytics"; diff --git a/apps/analytics-web/package.json b/apps/analytics-web/package.json index 50787dd0..b7ed0415 100644 --- a/apps/analytics-web/package.json +++ b/apps/analytics-web/package.json @@ -7,8 +7,8 @@ "build": "next build", "start": "next start", "lint": "next lint", - "test": "vitest", - "test:watch": "vitest --watch", + "test": "vitest run", + "test:watch": "vitest watch", "generate": "npx drizzle-kit generate:pg", "migrate": "npx tsx scripts/migrate.ts", "seed": "pnpm run generate && pnpm run migrate && npx tsx scripts/seed.ts"