Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Jan 21, 2025
1 parent 5b0c76e commit b0db6c1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/backend/server/src/__tests__/copilot-provider.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,11 @@ const runIfCopilotConfigured = test.macro(
export const runPrisma = async <T>(
cb: (
prisma: InstanceType<
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
typeof import('../../../../packages/backend/server/node_modules/@prisma/client').PrismaClient
typeof import('../../node_modules/@prisma/client').PrismaClient
>
) => Promise<T>
): Promise<T> => {
const {
PrismaClient,
// eslint-disable-next-line @typescript-eslint/no-var-requires
} = await import(
'../../../../packages/backend/server/node_modules/@prisma/client'
);
const { PrismaClient } = await import('../../node_modules/@prisma/client');
const client = new PrismaClient();
await client.$connect();
try {
Expand Down

0 comments on commit b0db6c1

Please sign in to comment.