File tree Expand file tree Collapse file tree 7 files changed +9
-9
lines changed
dev-packages/node-integration-tests/suites
tracing-experimental/prisma-orm Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { parseSemver } from '@sentry/utils';
33
44const 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 ) ;
Original file line number Diff line number Diff line change 11import { conditionalTest } from '../../../utils' ;
22import { 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' ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { parseSemver } from '@sentry/utils';
33
44const 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 ) ;
Original file line number Diff line number Diff line change 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' } ) ;
Original file line number Diff line number Diff line change 44 "description" : " " ,
55 "main" : " index.js" ,
66 "engines" : {
7- "node" : " >=12 "
7+ "node" : " >=16 "
88 },
99 "scripts" : {
1010 "db-up" : " docker-compose up -d" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { parseSemver } from '@sentry/utils';
33
44const 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 ) ;
Original file line number Diff line number Diff line change 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' } ) ;
You can’t perform that action at this time.
0 commit comments