Files
cypress/cli/lib/exec/versions.js
Ben Kucera 8a55864ae9 CLI caching (#1699)
* 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
2018-05-16 04:34:12 -04:00

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,
}