Skip to content

Commit

Permalink
Run installDefaultNpmDeps whenever creating self-test apps.
Browse files Browse the repository at this point in the history
Some tests disable the --prepare-app step, but still need babel-runtime
to be installed.
  • Loading branch information
Ben Newman committed Nov 2, 2016
1 parent 10f997a commit 6dcd8b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions tools/cli/commands-packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ main.registerCommand({
'allow-incompatible-update': { type: Boolean }
}
}, function (options) {
require("./commands.js").installDefaultNpmDeps(options.appDir);

var projectContext = new projectContextModule.ProjectContext({
projectDir: options.appDir,
allowIncompatibleUpdate: options['allow-incompatible-update']
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ selftest.define("npm", ["net"], function () {
run = s.run("--once", "--raw-logs");
run.tellMongo(MONGO_LISTENING);
if (i === 0) {
run.waitSecs(2);
run.waitSecs(30);
// use match instead of read because on a built release we can
// also get an update message here.
run.match(
Expand Down
2 changes: 2 additions & 0 deletions tools/tool-testing/selftest.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,8 @@ _.extend(Sandbox.prototype, {
upgradersFile.appendUpgraders(upgraders.allUpgraders());
}

require("../cli/commands.js").installDefaultNpmDeps(absoluteTo);

if (options.dontPrepareApp) {
return;
}
Expand Down

0 comments on commit 6dcd8b7

Please sign in to comment.