The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
chore: Add afterAll block to delete tag in create-tag.test.ts
Kiran K9fc37df764d1
diff --git a/apps/web/tests/tags/create-tag.test.ts b/apps/web/tests/tags/create-tag.test.tsindex b85f0e2f7d..d090f20cf2 100644--- a/apps/web/tests/tags/create-tag.test.ts+++ b/apps/web/tests/tags/create-tag.test.ts@@ -1,5 +1,5 @@import { Tag } from "@prisma/client";-import { expect, test } from "vitest";+import { afterAll, expect, test } from "vitest";import { IntegrationHarness } from "../utils/integration";import { expectedTag } from "../utils/schema";@@ -25,5 +25,7 @@ test("POST /tags", async (ctx) => {projectId,});- await h.deleteTag(tag.id);+ afterAll(async () => {+ await h.deleteTag(tag.id);+ });});