feat: update vitest version v0.34 to V2.11 (#16676)

* update version

* fix button to match new spec

* migrate tests to objectContaining

* fix tests

* update RTL

* yarn.lock update

* bump fetch mock to latest vitest version

* update deep mock to use vitest 2.0

* fix mock prisma type cast

* meet base test fn singature for V2

* remove console.log from next test
This commit is contained in:
sean-brydon authored and GitHub committed 2024-09-17 19:09:55 +01:00
1 parent 562309d24b
commit e7415fe6e2
15 files changed
+1253 -7457

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import { beforeEach, vi } from "vitest";
import { mockDeep, mockReset } from "vitest-mock-extended";
import { DeepMockProxy, mockDeep, mockReset } from "vitest-mock-extended";
import type { PrismaClient } from "@calcom/prisma";
@@ -14,5 +14,5 @@ beforeEach(() => {
mockReset(prisma);
});
const prisma = mockDeep<PrismaClient>();
const prisma = mockDeep<PrismaClient>() as unknown as DeepMockProxy<PrismaClient>;
export default prisma;