Skip to content

Test Visibility Github Action via dd-trace-js is failing due to import-in-the-middle dependency #4713

@karrui

Description

@karrui

Might be related to this NewRelic issue: newrelic/node-newrelic#1984

Using the latest Prisma v5.18.0 results in this error when running vitest tests in Github Action (with datadog/test-visibility-github-action@v1):

(node:2572) Error: 'import-in-the-middle' failed to wrap 
'file:///home/runner/work/<project>/node_modules/@prisma/client/default.js'

Same error also happens when running locally, so it is not the action causing this.

Unsure if this is a fix on dd-trace's end, import-in-the-middle, or Prisma.

Now back testing to see which version first caused dd-trace to stop working.
EDIT: First apeared in v5.11.0 of Prisma.

This error does not happen in v5.10.2 of Prisma.

Metadata

Metadata

Labels

bugSomething isn't workingci-app

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions