Skip to content

Commit

Permalink
Fix issue with prisma generated client
Browse files Browse the repository at this point in the history
  • Loading branch information
tnagorra committed Apr 12, 2024
1 parent db2aa9c commit 49e69ef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/prisma.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PrismaClient } from ".prisma/client";
import { PrismaClient } from "../src/generated/prisma";

declare global {
var prisma: PrismaClient | undefined;
Expand Down
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
generator client {
provider = "prisma-client-js"
output = "../node_modules/.prisma/client"
output = "../src/generated/prisma"
}

generator erd {
Expand Down
3 changes: 2 additions & 1 deletion tests/api/setup.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { afterEach, beforeEach, jest } from "@jest/globals";
import { Prisma, PrismaClient } from "@prisma/client";
import { Prisma } from "@prisma/client";
import { PrismaClient } from "../../src/generated/prisma";
import { spawnSync } from "child_process";
import { randomUUID } from "crypto";
import path from "path";
Expand Down
3 changes: 2 additions & 1 deletion tests/e2e/setup.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { afterEach, beforeEach, jest } from "@jest/globals";
import { Prisma, PrismaClient } from "@prisma/client";
import { Prisma } from "@prisma/client";
import { PrismaClient } from "../../src/generated/prisma";
import { spawnSync } from "child_process";
import path from "path";

Expand Down

0 comments on commit 49e69ef

Please sign in to comment.