mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-05 14:09:46 -06:00
-alias versions to -v and --version -make exec/versions helper -capture logs via logger -simplify tests
17 lines
295 B
JavaScript
17 lines
295 B
JavaScript
const util = require('../util')
|
|
const info = require('../tasks/info')
|
|
|
|
const getVersions = () => {
|
|
return info.getInstalledVersion()
|
|
.then((binary) => {
|
|
return {
|
|
package: util.pkgVersion(),
|
|
binary: binary || 'not installed',
|
|
}
|
|
})
|
|
}
|
|
|
|
module.exports = {
|
|
getVersions,
|
|
}
|