Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Skip tests on node 18, prisma requires node 20+
  • Loading branch information
andreiborza committed Jan 21, 2026
commit b7b71a750b11154efe55ddf5ef15ddcbf4a54fc1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PrismaPg } from '@prisma/adapter-pg';
import { PrismaClient } from './prisma/generated/prisma/client.js';
import * as Sentry from '@sentry/node';
import { randomBytes } from 'crypto';
import { PrismaClient } from './prisma/generated/prisma/client.js';

// Stop the process from exiting before the transaction is sent
setInterval(() => {}, 1000);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { afterAll, describe, expect } from 'vitest';
import { afterAll, expect } from 'vitest';
import { conditionalTest } from '../../../utils';
import { cleanupChildProcesses, createEsmAndCjsTests } from '../../../utils/runner';

afterAll(() => {
cleanupChildProcesses();
});

describe('Prisma ORM v7 Tests', () => {
// Prisma 7 requires Node.js 20.19+
conditionalTest({ min: 20 })('Prisma ORM v7 Tests', () => {
createEsmAndCjsTests(
__dirname,
'scenario.mjs',
Expand Down
Loading