2022-10-11 13:10:25 +00:00
|
|
|
const pkg = require('cypress/package.json');
|
2020-04-28 11:20:02 +00:00
|
|
|
const execa = require('execa');
|
|
|
|
|
2022-10-11 13:10:25 +00:00
|
|
|
const version = pkg.version;
|
2020-04-28 11:20:02 +00:00
|
|
|
|
|
|
|
(async () => {
|
2022-10-11 13:10:25 +00:00
|
|
|
console.log('Installing Cypress ' + version);
|
2020-04-28 11:20:02 +00:00
|
|
|
await execa('npm', ['run', 'cypress:install'], {
|
2022-10-11 13:10:25 +00:00
|
|
|
env: { CYPRESS_INSTALL_BINARY: version }
|
2020-04-28 11:20:02 +00:00
|
|
|
});
|
|
|
|
console.log('Cypress installed');
|
|
|
|
})();
|