From 20ce54ff8420ada0a5ac7e7a585b8098921ab111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Franco?= Date: Thu, 3 Sep 2026 20:36:16 +0200 Subject: [PATCH] fix(ci): use Node 22 for jsdom 30 test environment jsdom 30 pulls undici 8.x, which requires worker_threads.markAsUncloneable available only from Node 22.10+. CI was pinned to Node 20, causing vitest to fail before collecting any tests. --- .github/workflows/ci.yml | 2 +- .github/workflows/dependabot.yml | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b168ca5..979678f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -282,7 +282,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v7 with: - node-version: '20' + node-version: '22' cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index 10fd9bd..44ddcff 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v7 with: - node-version: '20' + node-version: '22' cache: 'pnpm' - name: Install dependencies diff --git a/package.json b/package.json index 2ac7696..5bfc315 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "typecheck": "tsc --noEmit" }, "engines": { - "node": ">=20" + "node": ">=22.19.0" }, "devDependencies": { "@eslint/js": "^10.0.1",