@@ -432,7 +432,7 @@ describe("listReadOnlyChannelPluginsForConfig", () => {
432432
433433 expectExternalChatSetupOnlyPluginLoaded ( { plugins, setupMarker, fullMarker } ) ;
434434 expect ( moduleLoaderParams ) . toContainEqual ( {
435- modulePath : path . join ( pluginDir , "setup-entry.cjs" ) ,
435+ modulePath : fs . realpathSync ( path . join ( pluginDir , "setup-entry.cjs" ) ) ,
436436 tryNative : true ,
437437 } ) ;
438438 } ) ;
@@ -514,35 +514,6 @@ describe("listReadOnlyChannelPluginsForConfig", () => {
514514 expect ( second . find ( ( plugin ) => plugin . id === "external-chat" ) ?. meta . blurb ) . toBe ( "second" ) ;
515515 } ) ;
516516
517- it ( "refreshes cached read-only channel plugins when active registry channels mutate in place" , ( ) => {
518- const cfg = { channels : { "external-chat" : { token : "configured" } } } as never ;
519- const registry = createTestRegistry ( [ ] ) ;
520- setActivePluginRegistry ( registry ) ;
521-
522- const first = listReadOnlyChannelPluginsForConfig ( cfg , {
523- includePersistedAuthState : false ,
524- includeSetupFallbackPlugins : true ,
525- } ) ;
526-
527- const plugin = {
528- ...createChannelTestPluginBase ( { id : "external-chat" as never } ) ,
529- meta : {
530- ...createChannelTestPluginBase ( { id : "external-chat" as never } ) . meta ,
531- blurb : "mutated registry" ,
532- } ,
533- } ;
534- registry . channels . push ( { pluginId : "mutated-plugin" , plugin, source : "test" } as never ) ;
535- const second = listReadOnlyChannelPluginsForConfig ( cfg , {
536- includePersistedAuthState : false ,
537- includeSetupFallbackPlugins : true ,
538- } ) ;
539-
540- expect ( pluginIds ( first ) ) . not . toContain ( "external-chat" ) ;
541- expect ( second . find ( ( entry ) => entry . id === "external-chat" ) ?. meta . blurb ) . toBe (
542- "mutated registry" ,
543- ) ;
544- } ) ;
545-
546517 it ( "refreshes cached read-only channel plugins when ambient env changes" , ( ) => {
547518 const { pluginDir, fullMarker, setupMarker } = writeExternalSetupChannelPlugin ( {
548519 manifestChannelConfig : true ,
0 commit comments