Skip to content

Commit

Permalink
fix gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
ling1726 committed Jun 8, 2022
1 parent d51150a commit 33688ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/gulp/plugins/gulp-cypress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const cypress = (config: CypressPluginConfig) => cb => {

const configArguments = [`baseUrl=${config.serverUrl}`].filter(Boolean);

const command = `./node_modules/.bin/cypress run --config ${configArguments.join(',')}`;
const command = `yarn cypress run --config ${configArguments.join(',')}`;

console.log(command);
return sh(command);
Expand Down
2 changes: 1 addition & 1 deletion scripts/gulp/tasks/test-e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ task('test:e2e:run', cb => {
const e2ePort = Number(process.env.E2E_PORT) || 8082;
const serverUrl = `http://${serverHost}:${e2ePort}`;

return cypress({ serverUrl, rootDir: paths.e2eTests(), testNamePattern: argv.testNamePattern as string })(cb);
return cypress({ serverUrl })(cb);
});

task(
Expand Down

0 comments on commit 33688ed

Please sign in to comment.