Open aenand opened 5 days ago
hey @aenand !
This seems to be related to a known limitation with import-in-the-middle and ESM:
Until the upstream dependency (import-in-the-middle) is fixed, there's nothing we can do sadly. I'll keep you updated if there are any news.
In any case, if you could share a small reproducible case to confirm my assessment that'd be very useful. You can run your vitests directly without datadog/test-visibility-github-action
(see instructions):
- run: npm run build --if-present
- name: Install dd-trace
run: npm install --save-dev dd-trace
- name: Run tests
run: npm run test
env:
NODE_OPTIONS: -r dd-trace/ci/init --import dd-trace/register.js
Gotcha thanks! We use pnpm to manage dependencies so it seems like we might have to add the dd-trace package to our list. Appreciate the help!
Hello! I am trying to use this action to track tests for my Javascript app that uses vitest. When following the vitest section of the guide, the command to run the test errors out. Any idea what causes this?
Step:
Error: