From 4e3f2191171249729e583041b890f3b515de05a2 Mon Sep 17 00:00:00 2001 From: "Andrew (shixish)" Date: Wed, 18 Nov 2026 12:50:18 -1000 Subject: [PATCH] fix(test): alias @diffbot/typescript to src in the live vitest config The Live tests workflow failed with 'Failed to resolve entry for package "@diffbot/typescript"' because only vitest.config.ts had the source alias. Co-Authored-By: Claude Opus 5.5 --- vitest.live.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vitest.live.config.ts b/vitest.live.config.ts index 9afedeb..4f4a505 100644 --- a/vitest.live.config.ts +++ b/vitest.live.config.ts @@ -1,3 +1,4 @@ +import { fileURLToPath } from "node:url"; import { defineConfig } from "vitest/config"; export default defineConfig({ @@ -7,4 +8,11 @@ export default defineConfig({ // well past vitest's 5s default. testTimeout: 60_000, }, + resolve: { + alias: { + // Same alias as vitest.config.ts (see tsconfig.json's matching "paths" entry): + // live tests import "@diffbot/typescript", which must resolve to the source. + "@diffbot/typescript": fileURLToPath(new URL("./src/index.ts", import.meta.url)), + }, + }, });