Skip to content

Commit 478e91b

Browse files
committed
Run prisma tests on node >=16
1 parent 78e5992 commit 478e91b

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

dev-packages/node-integration-tests/suites/tracing-experimental/prisma-orm/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { parseSemver } from '@sentry/utils';
33

44
const NODE_VERSION = parseSemver(process.versions.node);
55

6-
if (NODE_VERSION.major && NODE_VERSION.major < 12) {
6+
if (NODE_VERSION.major && NODE_VERSION.major < 16) {
77
// eslint-disable-next-line no-console
88
console.warn(`Skipping Prisma tests on Node: ${NODE_VERSION.major}`);
99
process.exit(0);

dev-packages/node-integration-tests/suites/tracing-experimental/prisma-orm/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { conditionalTest } from '../../../utils';
22
import { createRunner } from '../../../utils/runner';
33

4-
conditionalTest({ min: 14 })('Prisma ORM Tests', () => {
4+
conditionalTest({ min: 16 })('Prisma ORM Tests', () => {
55
test('CJS - should instrument PostgreSQL queries from Prisma ORM', done => {
66
const EXPECTED_TRANSACTION = {
77
transaction: 'Test Transaction',

dev-packages/node-integration-tests/suites/tracing-new/prisma-orm/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { parseSemver } from '@sentry/utils';
33

44
const NODE_VERSION = parseSemver(process.versions.node);
55

6-
if (NODE_VERSION.major && NODE_VERSION.major < 12) {
6+
if (NODE_VERSION.major && NODE_VERSION.major < 16) {
77
// eslint-disable-next-line no-console
88
console.warn(`Skipping Prisma tests on Node: ${NODE_VERSION.major}`);
99
process.exit(0);

dev-packages/node-integration-tests/suites/tracing-new/prisma-orm/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { TestEnv, assertSentryTransaction } from '../../../utils';
1+
import { TestEnv, assertSentryTransaction, conditionalTest } from '../../../utils';
22

3-
describe('Prisma ORM Integration', () => {
3+
conditionalTest({ min: 16 })('Prisma ORM Integration', () => {
44
test('should instrument Prisma client for tracing.', async () => {
55
const env = await TestEnv.init(__dirname);
66
const envelope = await env.getEnvelopeRequest({ envelopeType: 'transaction' });

dev-packages/node-integration-tests/suites/tracing/prisma-orm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"engines": {
7-
"node": ">=12"
7+
"node": ">=16"
88
},
99
"scripts": {
1010
"db-up": "docker-compose up -d",

dev-packages/node-integration-tests/suites/tracing/prisma-orm/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { parseSemver } from '@sentry/utils';
33

44
const NODE_VERSION = parseSemver(process.versions.node);
55

6-
if (NODE_VERSION.major && NODE_VERSION.major < 12) {
6+
if (NODE_VERSION.major && NODE_VERSION.major < 16) {
77
// eslint-disable-next-line no-console
88
console.warn(`Skipping Prisma tests on Node: ${NODE_VERSION.major}`);
99
process.exit(0);

dev-packages/node-integration-tests/suites/tracing/prisma-orm/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { TestEnv, assertSentryTransaction } from '../../../utils';
1+
import { TestEnv, assertSentryTransaction, conditionalTest } from '../../../utils';
22

3-
describe('Prisma ORM Integration', () => {
3+
conditionalTest({ min: 16 })('Prisma ORM Integration', () => {
44
test('should instrument Prisma client for tracing.', async () => {
55
const env = await TestEnv.init(__dirname);
66
const envelope = await env.getEnvelopeRequest({ envelopeType: 'transaction' });

0 commit comments

Comments
 (0)