|  | 
| 1 |  | -import { assertSentryTransaction, getEnvelopeRequest, runServer } from '../../../utils'; | 
|  | 1 | +import { assertSentryTransaction, conditionalTest, getEnvelopeRequest, runServer } from '../../../utils'; | 
| 2 | 2 | 
 | 
| 3 |  | -test('should instrument Prisma ORM client for tracing.', async () => { | 
| 4 |  | -  const url = await runServer(__dirname); | 
| 5 |  | -  const envelope = await getEnvelopeRequest(url); | 
|  | 3 | +conditionalTest({ min: 12 })('Prisma ORM Integration', () => { | 
|  | 4 | +  test('should instrument Prisma client for tracing.', async () => { | 
|  | 5 | +    const url = await runServer(__dirname); | 
|  | 6 | +    const envelope = await getEnvelopeRequest(url); | 
| 6 | 7 | 
 | 
| 7 |  | -  assertSentryTransaction(envelope[2], { | 
| 8 |  | -    transaction: 'Test Transaction', | 
| 9 |  | -    spans: [ | 
| 10 |  | -      { description: 'Action: create, Model: User', op: 'prisma' }, | 
| 11 |  | -      { description: 'Action: findMany, Model: User', op: 'prisma' }, | 
| 12 |  | -      { description: 'Action: deleteMany, Model: User', op: 'prisma' }, | 
| 13 |  | -    ], | 
|  | 8 | +    assertSentryTransaction(envelope[2], { | 
|  | 9 | +      transaction: 'Test Transaction', | 
|  | 10 | +      spans: [ | 
|  | 11 | +        { description: 'Action: create, Model: User', op: 'prisma' }, | 
|  | 12 | +        { description: 'Action: findMany, Model: User', op: 'prisma' }, | 
|  | 13 | +        { description: 'Action: deleteMany, Model: User', op: 'prisma' }, | 
|  | 14 | +      ], | 
|  | 15 | +    }); | 
| 14 | 16 |   }); | 
| 15 | 17 | }); | 
0 commit comments