We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c85ed14 + cc5926f commit aaef95cCopy full SHA for aaef95c
packages/amplify-e2e-core/src/utils/index.ts
@@ -78,7 +78,7 @@ export const loadFunctionTestFile = (fileName: string): string => {
78
*/
79
export const addNodeDependencies = (root: string, functionName: string, dependencies: string[]): void => {
80
const indexPath = path.join(getPathToFunction(root, functionName), 'src');
81
- execa.commandSync(`yarn add ${dependencies.join(' ')}`, { cwd: indexPath });
+ execa.sync('yarn', ['add', ...dependencies], { cwd: indexPath });
82
};
83
84
/**
0 commit comments