Skip to content

Commit fb375ab

Browse files
committed
fix prisma
1 parent cf8630f commit fb375ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/datadog-plugin-prisma/test/index.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('Plugin', () => {
2828
cwd + '/schema.prisma',
2929
)
3030
await agent.load('prisma')
31-
execSync('./node_modules/.bin/prisma generate', {
31+
execSync('npx prisma generate', {
3232
cwd, // Ensure the current working directory is where the schema is located
3333
stdio: 'inherit'
3434
})

packages/datadog-plugin-prisma/test/integration-test/client.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ describe('esm', () => {
3535
this.timeout(60000)
3636
agent = await new FakeAgent().start()
3737
execSync(
38-
'./node_modules/.bin/prisma migrate reset --force && ' +
39-
'./node_modules/.bin/prisma db push --accept-data-loss && ' +
40-
'./node_modules/.bin/prisma generate',
38+
'npx prisma migrate reset --force && ' +
39+
'npx prisma db push --accept-data-loss && ' +
40+
'npx prisma generate',
4141
{
4242
cwd: sandbox.folder, // Ensure the current working directory is where the schema is located
4343
stdio: 'inherit'

0 commit comments

Comments
 (0)