My before hook runs after the initial test and at the conclusion of the second test.
Here is the code for my before hook:
before(function () {
insightFacade.addDataset("courses", content)
.then(function (result: InsightResponse) {
console.log("then");
})
.catch(function (err: InsightResponse) {
console.log("catch");
});
});
It is worth mentioning that sometimes both the first and second tests fail, depending on the order in which I run them. However, the second test consistently fails.