Files
freeCodeCamp/cypress-install.js
Niraj Nandish 0214eb2488 feat: cypress 10 (#47886)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-10-11 18:40:25 +05:30

13 lines
315 B
JavaScript

const pkg = require('cypress/package.json');
const execa = require('execa');
const version = pkg.version;
(async () => {
console.log('Installing Cypress ' + version);
await execa('npm', ['run', 'cypress:install'], {
env: { CYPRESS_INSTALL_BINARY: version }
});
console.log('Cypress installed');
})();