From f0fad4c017f1218e43f9e7f0a0069ffaf90f408c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rge=20N=C3=A6ss?= Date: Wed, 14 Feb 2024 11:01:00 +0100 Subject: [PATCH] fix(ci): fix subargs issue w/pte e2e tests --- .github/workflows/e2e-pte.yml | 2 +- packages/@sanity/portable-text-editor/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-pte.yml b/.github/workflows/e2e-pte.yml index 9829265272b..e906a44480f 100644 --- a/.github/workflows/e2e-pte.yml +++ b/.github/workflows/e2e-pte.yml @@ -63,4 +63,4 @@ jobs: run: npx playwright install --with-deps - name: Run end-to-end tests - run: cd packages/@sanity/portable-text-editor && pnpm test:e2e -- --silent --shard=${{ matrix.shardIndex}}/${{ matrix.shardTotal }} + run: npx jest --config=packages/@sanity/portable-text-editor/e2e-tests/e2e.config.cjs --silent --shard=${{ matrix.shardIndex}}/${{ matrix.shardTotal }} diff --git a/packages/@sanity/portable-text-editor/package.json b/packages/@sanity/portable-text-editor/package.json index 62e577a3f29..6d486bba880 100644 --- a/packages/@sanity/portable-text-editor/package.json +++ b/packages/@sanity/portable-text-editor/package.json @@ -59,7 +59,7 @@ "prettier": "prettier --write './**/*.{ts,tsx,js,css,html}'", "dev": "cd ./test/ && ts-node serve", "test": "jest", - "test:e2e": "cd e2e-tests && jest --config=e2e.config.cjs", + "test:e2e": "jest --config=e2e-tests/e2e.config.cjs", "test:watch": "jest --watch", "watch": "pkg-utils watch --tsconfig tsconfig.lib.json" },