Я пытаюсь получить текущую установленную версию TestCafe на моем Node.js. Я пытался:
let testcafe = null;
createTestCafe('localhost', 1337, 1338, void 0, true)
.then(tc => {
testcafe = tc;
.......
})
.then(() => {
return runner
.src([__basedir + '/tests/temp.js'])
.browsers(myBrowser)
.screenshots(screnshotpath, true)
.reporter('allure')
.run()
.then(failedCount => {
console.log( "Testcafe Version" + testcafe.version);
testcafe.close();
.......
Но это не определено. Возможен ли другой способ?