Skip to content

Commit 5e620bc

Browse files
Do not try to resolve hookArgs
When we validate the hook arguments we try to resolve all of them but there is one argument which is not registered in the injector - hookArgs. If some hook wants to use it we will try to resolve it and fail. The solution is to skip the validation for the hookArgs argument.
1 parent ff285f8 commit 5e620bc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/stubs.ts

+2
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ export class HooksServiceStub implements IHooksService {
410410
executeAfterHooks(commandName: string): IFuture<void> {
411411
return Future.fromResult();
412412
}
413+
414+
hookArgsName = "hookArgs";
413415
}
414416

415417
export class LockFile {

0 commit comments

Comments
 (0)