From 71ace10bad6ff196e03eaa2cc7a0003409e1cabc Mon Sep 17 00:00:00 2001 From: Kar Rui Lau Date: Tue, 23 Jul 2024 13:44:55 +0800 Subject: [PATCH] feat: add extra node_options for vitest --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d3cfad1..f07def3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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