Enable no-unsafe-return rule
This commit is contained in:
parent
2f54d9fcfa
commit
1ea11ca775
16 changed files with 30 additions and 26 deletions
|
|
@ -1017,7 +1017,10 @@ export function stubToolRunnerConstructor(
|
|||
stderr?: string,
|
||||
): sinon.SinonStub<any[], toolrunner.ToolRunner> {
|
||||
const runnerObjectStub = sinon.createStubInstance(toolrunner.ToolRunner);
|
||||
const runnerConstructorStub = sinon.stub(toolrunner, "ToolRunner");
|
||||
const runnerConstructorStub = sinon.stub(
|
||||
toolrunner,
|
||||
"ToolRunner",
|
||||
) as sinon.SinonStub<any[], toolrunner.ToolRunner>;
|
||||
let stderrListener: ((data: Buffer) => void) | undefined = undefined;
|
||||
runnerConstructorStub.callsFake((_cmd, _args, options: ExecOptions) => {
|
||||
stderrListener = options.listeners?.stderr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue