From fd3515c59765b7ced928e5b831e72963beb03f96 Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Mon, 9 Mar 2026 20:51:37 +0100 Subject: [PATCH] fix(ci): Install native resolver bindings for Jest 30 on release builds Jest 30 uses @unrs/resolver which requires platform-specific native binaries. The release CI path uses --omit=optional which skips these bindings, causing Jest to fail with "Module not found" errors. Run napi-postinstall after install on release builds to install the correct native binary for the platform. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/test_node.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test_node.yml b/.github/workflows/test_node.yml index f6df4911ca..5303b08440 100644 --- a/.github/workflows/test_node.yml +++ b/.github/workflows/test_node.yml @@ -96,6 +96,12 @@ jobs: if: ${{ inputs.triggered-by-release }} run: npm install --omit=optional --ignore-scripts + # --omit=optional skips native resolver bindings required by Jest 30. + # napi-postinstall installs the correct platform-specific binary. + - name: Install native bindings (for pushes to release branch) + if: ${{ inputs.triggered-by-release }} + run: npx napi-postinstall unrs-resolver + - name: Download build artifact uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # 8.0.0 with: