The following code block works with a runId printing:
before(function () {
testrail.getRuns(/*PROJECT_ID=*/1, /*FILTERS=*/{}, function (err, response, runs) {
let runId = runs[0].id
console.log('runId:', runId)
});
})
This code does not work with no print occurring at all. There is no error either as err is null.
after(function () {
testrail.getRuns(/*PROJECT_ID=*/1, /*FILTERS=*/{}, function (err, response, runs) {
let runId = runs[0].id
console.log('runId:', runId)
});
})
I've used this before without the issue, but now this is happening in a new implementation. What could be causing this?