Skip to content

Commit

Permalink
🏗 Enable package updates for E2E and visual diff tests (#23427)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimha authored Jul 22, 2019
1 parent 3542e7f commit 6b86000
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build-system/tasks/e2e/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const TEST_RETRIES = 2;
let webServerProcess_;

function installPackages_() {
log('Running', cyan('yarn'), 'to install packages...');
execOrDie('npx yarn --cwd build-system/tasks/e2e', {'stdio': 'ignore'});
}

Expand All @@ -46,6 +47,7 @@ function buildRuntime_() {
}

function launchWebServer_() {
log('Launching webserver at', cyan(`http://${HOST}:${PORT}`) + '...');
webServerProcess_ = execScriptAsync(
`gulp serve --compiled --host ${HOST} --port ${PORT}`,
{stdio: 'ignore'}
Expand Down Expand Up @@ -114,6 +116,7 @@ async function e2e() {

// run tests
if (!argv.watch) {
log('Running tests...');
const mocha = createMocha_();

// specify tests to run
Expand Down
2 changes: 1 addition & 1 deletion build-system/tasks/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "gulp-e2e",
"version": "0.1.0",
"description": "Gulp e2e",
"dependencies": {
"devDependencies": {
"@babel/register": "7.4.4",
"babel-regenerator-runtime": "6.5.0",
"chromedriver": "74.0.0",
Expand Down
2 changes: 1 addition & 1 deletion build-system/tasks/visual-diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "gulp-visual-diff",
"version": "0.1.0",
"description": "Gulp visual diff",
"dependencies": {
"devDependencies": {
"@percy/puppeteer": "0.4.0",
"puppeteer": "1.9.0"
}
Expand Down

0 comments on commit 6b86000

Please sign in to comment.