Skip to main content

Test Connection

Overview

Use these commands to intercept the Test-Connection command.

Input/OutputData Type
Inputundefined
OutputStdTestConnectionOutput

Example StdTestConnectionOutput

{
}

Implementation

Before test-connection command

Use this logic to implement the command:

    .beforeStdTestConnection(async (context: Context, input: undefined) => {
logger.info('Running before test connection')
})

There is no input, so you cannot mutate any data. However, you can make web request calls or perform any type of logging or logic before calling the connector.

After test-connection command

Use this logic to implement the command:

    .afterStdTestConnection(async (context: Context, output: StdTestConnectionOutput) => {
logger.info('Running after test connection')
return output
})

The output datatype is always an empty object handed down from the connector.