mirror of
https://gh-proxy.org/https://github.com/klinsmaya/workdsh.git
synced 2026-11-11 10:56:55 +08:00
test(desktop): verify plugin install lifecycle contract
This commit is contained in:
@@ -185,7 +185,11 @@ try {
|
||||
|| hostServiceProbe.pnpm?.serviceName !== 'desktopPnpm'
|
||||
|| hostServiceProbe.pnpm.lookupRun !== 'function'
|
||||
|| hostServiceProbe.pnpm.run !== 'function'
|
||||
|| hostServiceProbe.pnpm.runPlugin !== 'function') {
|
||||
|| hostServiceProbe.pnpm.runPlugin !== 'function'
|
||||
|| hostServiceProbe.pnpm.installPlugin !== 'function'
|
||||
|| hostServiceProbe.pnpm.recoveredInstallReceiptIds !== 'function'
|
||||
|| hostServiceProbe.pnpm.acknowledgeRecoveredInstall !== 'function'
|
||||
|| hostServiceProbe.pnpm.rollbackPluginInstall !== 'function') {
|
||||
throw new Error(
|
||||
`profile-local Host service plugin produced an unexpected probe: ${JSON.stringify(hostServiceProbe)}`,
|
||||
)
|
||||
|
||||
@@ -16,6 +16,10 @@ export function apply(ctx) {
|
||||
lookupRun: typeof ctx.get('desktopPnpm')?.run,
|
||||
run: typeof pnpm.run,
|
||||
runPlugin: typeof pnpm.runPlugin,
|
||||
installPlugin: typeof pnpm.installPlugin,
|
||||
recoveredInstallReceiptIds: typeof pnpm.recoveredInstallReceiptIds,
|
||||
acknowledgeRecoveredInstall: typeof pnpm.acknowledgeRecoveredInstall,
|
||||
rollbackPluginInstall: typeof pnpm.rollbackPluginInstall,
|
||||
}),
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user