(hooks)
| 1055 | }); |
| 1056 | |
| 1057 | function collectCommands(hooks) { |
| 1058 | const commands = []; |
| 1059 | for (const matchers of Object.values(hooks.hooks)) { |
| 1060 | for (const matcher of matchers) { |
| 1061 | for (const hook of matcher.hooks || []) commands.push(hook.command); |
| 1062 | } |
| 1063 | } |
| 1064 | return commands; |
| 1065 | } |
| 1066 | |
| 1067 | it('builds absolute, encoded hook commands rooted at configRoot with spaces (#590)', () => { |
| 1068 | const tmp = makeTmpDir(); |