Я не могу понять, почему (или если это не разрешено) testcafe не будет запускать мой файл класса бегуна. Текущая настройка
package.json:
{
...
"test:integration": "testcafe ./bin/integration.js",
...
"devDependencies": {
...
"testcafe": "^1.5.0",
"testcafe-react-selectors": "^3.2.0",
...
}
bin /gration.js (bin на уровне package.json)
const createTestCafe = require('testcafe')
let runner = null
let testcafe = null
createTestCafe('localhost', 1337, 1338)
.then(tc => {
testcafe = tc
runner = testcafe.createRunner()
return testcafe.createBrowserConnection()
})
.then(remoteConnection => {
// Outputs remoteConnection.url so that it can be visited from the remote browser.
console.log('remote url:', remoteConnection.url)
remoteConnection.once('ready', () => {
runner
.src('../integration-tests/*test.js*')
.browsers(['chrome'])
.run({
selectorTimeout: 50000,
assertionTimeout: 7000,
pageLoadTimeout: 8000
})
.then(failed => {
console.log('failed tests:', failed)
testcafe.close()
})
.catch(error => {
console.log(error)
})
})
})
Получена ошибка: ERROR Unable to find the browser. "./bin/integration.js" is not a browser alias or path to an executable file.
Что я делаю не так?
Заранее спасибо