Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow customized Prisma client instance #110

Merged
merged 5 commits into from
Oct 16, 2023
Merged

Allow customized Prisma client instance #110

merged 5 commits into from
Oct 16, 2023

Conversation

Quramy
Copy link
Owner

@Quramy Quramy commented Oct 16, 2023

It fixes #29, #47 .

I introduce jestPrisma.initializeClient function.

Usecases:

  1. Prisma client JavaScript are generated to non-default location ([feature] allow prisma client to be imported from non-default location #29)
  2. User extends / customize Prisma client instance (⚠️ Client extension does not work ⚠️  #47)

@Quramy Quramy changed the title refactor: Change originalClient instantiate timing Allow customized Prisma client instance Oct 16, 2023
@Quramy Quramy marked this pull request as ready for review October 16, 2023 09:27
@Quramy Quramy merged commit 56f8fdd into main Oct 16, 2023
1 check passed
@Quramy Quramy deleted the load_client branch October 16, 2023 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] allow prisma client to be imported from non-default location
1 participant