@@ -128,24 +128,29 @@ function setOwningProviderManifestPluginsWithWorkspace() {
|
128 | 128 | |
129 | 129 | function createProviderRegistrySnapshotFixture(): PluginRegistrySnapshot { |
130 | 130 | const manifestRegistry = loadPluginManifestRegistryMock(); |
131 | | -const plugins = manifestRegistry.plugins.map((plugin) => ({ |
132 | | -pluginId: plugin.id, |
133 | | -manifestPath: plugin.manifestPath, |
134 | | -manifestHash: `test-${plugin.id}`, |
135 | | -source: plugin.source, |
136 | | -rootDir: plugin.rootDir, |
137 | | -origin: plugin.origin, |
138 | | -enabled: plugin.enabledByDefault !== false, |
139 | | - ...(plugin.enabledByDefault === true ? { enabledByDefault: true } : {}), |
140 | | -syntheticAuthRefs: plugin.syntheticAuthRefs, |
141 | | -startup: { |
142 | | -sidecar: false, |
143 | | -memory: false, |
144 | | -deferConfiguredChannelFullLoadUntilAfterListen: false, |
145 | | -agentHarnesses: [], |
146 | | -}, |
147 | | -compat: [], |
148 | | -})); |
| 131 | +const plugins = manifestRegistry.plugins.map((plugin) => { |
| 132 | +const snapshotPlugin = { |
| 133 | +pluginId: plugin.id, |
| 134 | +manifestPath: plugin.manifestPath, |
| 135 | +manifestHash: `test-${plugin.id}`, |
| 136 | +source: plugin.source, |
| 137 | +rootDir: plugin.rootDir, |
| 138 | +origin: plugin.origin, |
| 139 | +enabled: plugin.enabledByDefault !== false, |
| 140 | +syntheticAuthRefs: plugin.syntheticAuthRefs, |
| 141 | +startup: { |
| 142 | +sidecar: false, |
| 143 | +memory: false, |
| 144 | +deferConfiguredChannelFullLoadUntilAfterListen: false, |
| 145 | +agentHarnesses: [], |
| 146 | +}, |
| 147 | +compat: [], |
| 148 | +}; |
| 149 | +if (plugin.enabledByDefault === true) { |
| 150 | +Object.assign(snapshotPlugin, { enabledByDefault: true }); |
| 151 | +} |
| 152 | +return snapshotPlugin; |
| 153 | +}); |
149 | 154 | |
150 | 155 | return { |
151 | 156 | version: 1, |
|