diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3bdbee7..ae9371e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -600,9 +600,11 @@ jobs: steps: - uses: actions/checkout@v7 + # Node 22: vitest 5 dropped Node 20, and @companion-module/base 2.1 + # itself declares node ^22.20 (Companion 5 ships Node 22). - uses: actions/setup-node@v7 with: - node-version: 20 + node-version: 22 - name: Install dependencies run: npm install diff --git a/companion/companion-module-corevideo-obs/package.json b/companion/companion-module-corevideo-obs/package.json index 967af8b..2e6e8ac 100644 --- a/companion/companion-module-corevideo-obs/package.json +++ b/companion/companion-module-corevideo-obs/package.json @@ -37,7 +37,7 @@ "@types/node": "^26.4.1", "@types/ws": "^8.0.0", "typescript": "^7.0.2", - "vitest": "^4.1.9" + "vitest": "^5.0.0" }, "engines": { "node": ">=18"