diff --git a/.github/workflows/js_sdk_tests.yml b/.github/workflows/js_sdk_tests.yml index a54f151cbc..3a08f0dcb8 100644 --- a/.github/workflows/js_sdk_tests.yml +++ b/.github/workflows/js_sdk_tests.yml @@ -96,6 +96,10 @@ jobs: path: ${{ matrix.os == 'windows-latest' && '~/AppData/Local/ms-playwright' || '~/.cache/ms-playwright' }} key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} + - name: Install Playwright Chromium + if: matrix.runtime == 'node' + run: pnpm run playwright:install + # The unit bundle test and the Cloudflare deploy config fail in CI when # the build output is missing. - name: Test build diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.json index b344820b1e..ea36166b00 100644 --- a/packages/js-sdk/package.json +++ b/packages/js-sdk/package.json @@ -35,7 +35,7 @@ "generate:volume-api": "openapi-typescript ../../spec/openapi-volumecontent.yml -x api_key --array-length --alphabetize --output src/volume/schema.gen.ts", "generate:mcp": "json2ts -i ./../../spec/mcp-server.json -o src/sandbox/mcp.d.ts --unreachableDefinitions --style.singleQuote --no-style.semi", "check-deps": "knip", - "pretest": "npx playwright install --with-deps chromium", + "playwright:install": "playwright install chromium", "test:bun": "bunx --bun vitest run --project unit --project connectionConfig --project template", "test:cf": "vitest run --config tests/runtimes/cloudflare/vitest.config.mts", "test:cf:deploy": "vitest run --config tests/runtimes/cloudflare-deploy/vitest.config.mts",