Version: 0.10.150.10.161.0.01.0.11.0.21.0.31.0.41.0.51.0.61.0.71.0.81.0.91.1.01.2.01.2.11.2.21.2.41.2.51.2.61.2.71.2.81.2.92.0.02.0.12.0.22.0.32.1.02.1.12.1.22.2.02.2.12.2.22.2.32.2.42.2.52.2.62.2.72.2.82.2.92.2.102.2.112.2.122.2.132.2.142.2.152.2.162.2.172.2.182.2.192.2.202.2.212.3.02.3.12.3.22.3.32.3.42.3.52.3.62.3.72.3.82.3.92.3.102.3.112.3.122.3.132.3.142.3.152.3.162.3.172.3.192.3.202.3.212.3.222.3.232.3.252.3.262.3.272.3.282.3.292.3.302.3.312.3.322.3.332.4.02.4.12.4.22.4.32.4.42.4.52.4.62.4.72.4.82.5.02.5.12.5.22.5.32.5.42.5.52.5.62.5.7-beta.03.0.0-beta.13.0.03.0.13.0.23.0.33.0.43.1.03.1.13.1.23.1.33.1.43.1.53.1.63.1.73.1.83.1.93.1.103.1.113.1.123.1.133.1.143.1.153.1.163.1.173.2.03.2.13.2.23.2.33.2.53.2.63.2.73.2.83.2.93.2.103.2.113.2.12-dev.03.2.123.2.13
/// <reference types="mocha" />
import { Interfaces } from '@oclif/core';
import { loadConfig } from './load-config';
declare const _default: (event: string, hookOpts?: Record<string, unknown>, options?: loadConfig.Options) => {
run(ctx: {
config: Interfaces.Config;
expectation: string;
returned: unknown;
}): Promise<void>;
};
/**
* tests a oclif hook
*
* @example <caption>check that when the 'init' hook is ran it outputs "this output"</caption>
* testHook('init', {id: 'mycommand'}, {stdout: true}, output => {
* expect(output.stdout).to.contain('this output')
* })
* @param {string} event hook to run
* @param {object} hookOpts options to pass to hook. Config object will be passed automatically.
*/
export default _default;