From 8c9d7ddfe4a4cc403b244e71133f9313de437864 Mon Sep 17 00:00:00 2001 From: Joshua Melville Date: Fri, 2 Feb 2024 13:53:33 +0200 Subject: [PATCH] update test task names --- apps/analytics-web/app/api/event/route.test.ts | 1 - apps/analytics-web/package.json | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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"