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)), + }, + }, });