From bfe6bfe314977de39469a75d672cea9851bd3519 Mon Sep 17 00:00:00 2001 From: Carmen Popoviciu Date: Thu, 15 Aug 2024 18:15:24 +0200 Subject: [PATCH] fix: Add `workers-shared` override in vitest-pool-workers global setup --- packages/vitest-pool-workers/test/global-setup.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/vitest-pool-workers/test/global-setup.ts b/packages/vitest-pool-workers/test/global-setup.ts index 9f1876629d7f..d8450a91229d 100644 --- a/packages/vitest-pool-workers/test/global-setup.ts +++ b/packages/vitest-pool-workers/test/global-setup.ts @@ -35,6 +35,10 @@ export default async function ({ provide }: GlobalSetupContext) { packDestinationPath, path.join(packagesRoot, "kv-asset-handler") ); + const workersSharedTarballPath = packPackage( + packDestinationPath, + path.join(packagesRoot, "workers-shared") + ); const miniflareTarballPath = packPackage( packDestinationPath, path.join(packagesRoot, "miniflare") @@ -75,6 +79,7 @@ export default async function ({ provide }: GlobalSetupContext) { pnpm: { overrides: { "@cloudflare/kv-asset-handler": kvAssetHandlerTarballPath, + "@cloudflare/workers-shared": workersSharedTarballPath, miniflare: miniflareTarballPath, wrangler: wranglerTarballPath, },