Skip to content

Commit

Permalink
fix(smoke-tests): Fix case where no adapter should be used (#4338)
Browse files Browse the repository at this point in the history
  • Loading branch information
janpio authored Oct 9, 2023
1 parent ce7f705 commit 3155122
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ export async function smokeTestClient(driverAdapter: DriverAdapter) {
const dirname = path.dirname(new URL(import.meta.url).pathname)
process.env.PRISMA_QUERY_ENGINE_LIBRARY = getLibQueryEnginePath(dirname)

for (const adapter of [driverAdapter, undefined]) {
const isUsingDriverAdapters = adapter !== undefined
// Run twice, once with adapter and once fully without
for (const adapter of [driverAdapter, null]) {
const isUsingDriverAdapters = adapter !== null
describe(isUsingDriverAdapters ? `using Driver Adapters` : `using Rust drivers`, () => {
it('batch queries', async () => {
const prisma = new PrismaClient({
Expand Down

0 comments on commit 3155122

Please sign in to comment.