mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-31 11:59:04 -06:00
* WIP [skip ci] tests passing -1 * WIP [skip ci] tests passing -1 * [WIP] [skip ci] more passing tests * add run,open,verify cli tests * fix package.json * fix install_spec * rename info_spec -> state_spec * refactor cli options * more useful logging * change binary location, change folder name * fix --binary-path arg * update error message for cache * lib/tasks/install.js changes * add progress for direct unzip, prefer cache with override version with url/zip * update cli logs * prettier logs, remove arg * fix failing test- stub os.release * fix cli_spec snapshot, remove group and groupid args
17 lines
317 B
JavaScript
17 lines
317 B
JavaScript
const util = require('../util')
|
|
const state = require('../tasks/state')
|
|
|
|
const getVersions = () => {
|
|
return state.getBinaryPkgVersionAsync()
|
|
.then((binaryVersion) => {
|
|
return {
|
|
package: util.pkgVersion(),
|
|
binary: binaryVersion || 'not installed',
|
|
}
|
|
})
|
|
}
|
|
|
|
module.exports = {
|
|
getVersions,
|
|
}
|