You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2021. It is now read-only.
Recursively look for projectDir when executing hooks
Whenever executing a hook we try and pass the `projectDir` to the hook, however we expect the original method, marked with `@hook` to either have the actual property `projectDir` as an argument or at least have an argument, named `projectData` from which we can get the `projectDir`.
This is incorrect, as the `projectDir` property may be nested in some argument further down.
Recursively traverse all arguments and try and locate the `projectDir` property.
assert.deepEqual(actualResult,testData.expectedResult,`For input ${JSON.stringify(testData.input)}, the expected result is: ${JSON.stringify(testData.expectedResult||"undefined")}, but actual result is: ${JSON.stringify(actualResult||"undefined")}.`);
0 commit comments