F

selfTest

Runs a running plugin's self-test, as the device matrix does after restarting it.

function selfTest(id: string): Promise<PluginSelfTestResult | undefined>

Parameters

NameTypeDescription
idstring

The plugin's id.

Returns

Promise<PluginSelfTestResult | undefined>

Its report, or undefined when it is not running or has no self-test; rejects with what the self-test threw.