Use npm for e2e tests

Summary:
Force npm for e2e tests.
Bonus: tracked down and removed a non-standard `.done()` call that was breaking e2e tests.

Reviewed By: bestander

Differential Revision: D4153514

fbshipit-source-id: 079939874ea75c7ea6e3e5376d37873c95fc74c1
This commit is contained in:
Ovidiu Viorel Iepure 2016-11-09 09:23:36 -08:00 committed by Facebook Github Bot
parent 8e803643ec
commit 33fb428a07
2 changed files with 4 additions and 2 deletions

View File

@ -319,7 +319,9 @@ function attachHMRServer({httpServer, path, packagerServer}) {
client.ws.on('close', () => disconnect());
})
.done();
.catch(err => {
throw err;
});
});
}

View File

@ -76,7 +76,7 @@ try {
if (tryExecNTimes(
() => {
exec('sleep 10s');
return exec(`react-native init EndToEndTest --version ${PACKAGE}`).code;
return exec(`react-native init EndToEndTest --version ${PACKAGE} --npm`).code;
},
numberOfRetries,
() => rm('-rf', 'EndToEndTest'))) {