Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix

Kiran Ke1253168570b
diff --git a/apps/web/package.json b/apps/web/package.json
index b780874a8d..0be22aec7c 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -8,7 +8,7 @@
"lint": "next lint",
"start": "next start",
"script": "tsx ./scripts/run.ts",
- "test": "vitest -no-file-parallelism",
+ "test": "vitest -no-file-parallelism --bail=1",
"generate-openapi": "tsx ./scripts/generate-openapi.ts",
"prisma:generate": "dotenv-flow -e .env -- pnpm --filter=@dub/prisma generate",
"prisma:push": "dotenv-flow -e .env -- pnpm --filter=@dub/prisma push",
diff --git a/apps/web/tests/links/retrieve-link.test.ts b/apps/web/tests/links/retrieve-link.test.ts
index dc54f4528f..d03a3f69cd 100644
--- a/apps/web/tests/links/retrieve-link.test.ts
+++ b/apps/web/tests/links/retrieve-link.test.ts
@@ -1,6 +1,6 @@
import { Link } from "@dub/prisma/client";
import { expectedLink } from "tests/utils/schema";
-import { afterAll, describe, expect, onTestFinished, test } from "vitest";
+import { afterAll, describe, expect, test } from "vitest";
import { randomId } from "../utils/helpers";
import { IntegrationHarness } from "../utils/integration";
import { E2E_LINK } from "../utils/resource";
@@ -66,7 +66,7 @@ describe.sequential("GET /links/info", async () => {
const externalId = randomId();
const key = randomId();
- onTestFinished(async () => {
+ afterAll(async () => {
await h.deleteLink(newLink.id);
});