diff --git a/packages/template/vitest.config.ts b/packages/template/vitest.config.ts index e4c46fede..890a9e5c0 100644 --- a/packages/template/vitest.config.ts +++ b/packages/template/vitest.config.ts @@ -1,7 +1,16 @@ +import { fileURLToPath } from 'node:url' // THIS_LINE_PLATFORM template import { defineConfig, mergeConfig } from 'vitest/config' import sharedConfig from '../../vitest.shared' +const tanstackStartServerContextStub = fileURLToPath(new URL('./src/tanstack-start-server-context.default.ts', import.meta.url)) // THIS_LINE_PLATFORM template + export default mergeConfig( sharedConfig, - defineConfig({}), + defineConfig({ + resolve: { + alias: { + "@stackframe/tanstack-start/tanstack-start-server-context": tanstackStartServerContextStub, // THIS_LINE_PLATFORM template + }, + }, + }), )