Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Load server source natively in the registry test's nested runs (#7749)

Nick Gomez5c17e651c9e5
diff --git a/test-support/server-authority-registry.uncached.test.ts b/test-support/server-authority-registry.uncached.test.ts
index 36c86f64a..eac5d875d 100644
--- a/test-support/server-authority-registry.uncached.test.ts
+++ b/test-support/server-authority-registry.uncached.test.ts
@@ -14,7 +14,14 @@ const ownerPreload = new URL('./fixtures/server-authority-owner.test-helper.mjs'
const observationSetup = fileURLToPath(
new URL('./fixtures/server-authority-observation.test-helper.ts', import.meta.url),
);
-const observationOverrides: ViteUserConfig = { test: { setupFiles: [observationSetup] } };
+const testOwnedModules = /\.test(?:-helper)?\.[cm]?[jt]sx?$/;
+const serverAndCoreSource = /\/packages\/(?:core|server)\/src\//;
+const observationOverrides: ViteUserConfig = {
+ test: {
+ setupFiles: [observationSetup],
+ server: { deps: { inline: [testOwnedModules], external: [serverAndCoreSource] } },
+ },
+};
const scriptsConfig = 'vitest.scripts.config.ts';
const serverConfig = 'packages/server/vitest.config.ts';
const helperFixture = relative(