mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: harden package-root mocks after setup slimming
This commit is contained in:
@@ -270,6 +270,11 @@ function installDefaultPluginRegistry(): void {
|
||||
setActivePluginRegistry(resolveDefaultPluginRegistryProxy());
|
||||
}
|
||||
|
||||
// Some suites import channel/plugin consumers at module top level, before
|
||||
// Vitest runs hooks. Seed the lazy registry during setup module evaluation so
|
||||
// import-time lookups still see the default test registry.
|
||||
installDefaultPluginRegistry();
|
||||
|
||||
beforeAll(() => {
|
||||
installDefaultPluginRegistry();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user