Skip to content

Commit

Permalink
feat: add extra node_options for vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
karrui committed Jul 23, 2024
1 parent 5aa424b commit 71ace10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ jobs:
env:
# env.DD_TRACE_PACKAGE is provided by the Datadog GitHub Action,
# but might not be available if repository does not have the required env vars set.
NODE_OPTIONS: ${{ env.DD_TRACE_PACKAGE && format('-r {0}', env.DD_TRACE_PACKAGE) || '' }}
# --import dd-trace/register.js is required for vitest
NODE_OPTIONS: ${{ env.DD_TRACE_PACKAGE && format('--import dd-trace/register.js -r {0}', env.DD_TRACE_PACKAGE) || '--import dd-trace/register.js' }}

- name: Stop test containers
run: npm run teardown
Expand Down

0 comments on commit 71ace10

Please sign in to comment.