Skip to content

Commit 73aebfd

Browse files
committed
fix prisma tests
1 parent f4442a6 commit 73aebfd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
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('npx prisma generate', {
31+
execSync('./node_modules/.bin/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-
'npx prisma migrate reset --force && ' +
39-
'npx prisma db push --accept-data-loss && ' +
40-
'npx prisma generate',
38+
'./node_modules/.bin/prisma migrate reset --force && ' +
39+
'./node_modules/.bin/prisma db push --accept-data-loss && ' +
40+
'./node_modules/.bin/prisma generate',
4141
{
4242
cwd: sandbox.folder, // Ensure the current working directory is where the schema is located
4343
stdio: 'inherit'

scripts/install_plugin_modules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async function assertPeerDependencies () {
157157
// Add missing dependency to the module. While this technically means the
158158
// module is broken, a user could add the dependency manually as well, so we
159159
// need to do the same thing in order to test that scenario.
160-
if (dep !== name && typeof dep === 'string') {
160+
if (dep !== externalName && typeof dep === 'string') {
161161
versionPkgJson.dependencies[name] = dep
162162

163163
hasPeers = true

0 commit comments

Comments
 (0)