test setup lackin
This commit is contained in:
9
test/trpc/GetBaseUrl.mock.ts
Normal file
9
test/trpc/GetBaseUrl.mock.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { vi } from "vitest";
|
||||
import { port } from "test/trpc/server"
|
||||
vi.mock("~/app/_trpc/GetBaseUrl", () => {
|
||||
return {
|
||||
default: vi.fn(() => {
|
||||
return `http://localhost:${port}`
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user