A lovely javascript testing framework -- want to contribute? join us in https://gitter.im/mochajs/contributors
juergba on karma
type check before calling retri… (compare)
hljs
namespacing for the test suite.
await import
failed silently
require
but seems impossible with ESM... I'm just making sure that I'm not missing something. It sounds like it's simply not possible. It was just about seeing the output of the tests grouped nicely when running them.
yarn mocha
runs all tests without exceptions but yarn mocha --watch
throws Must use import to load ES Module: [path to my test file]
"type":"module"
require
instead of import
, i suppose.
beforeEach
but I don't believe you can pick and choose when to add a delay
it('should blar', async () => {
try {
// my tests
} catch (err) {
await delay(400);
throw err;
}
});
function delay(time) {
return new Promise(r => setTimeout(r, time));
}
Hi All, Basic question!
I need to develop end2end testing for a series of softwares that we have developed in house and I wonder if Mocha is the right tool for it?
A typical test scenario in our case consists of following steps (which is done manually at the moment)
Ideally I want to be able to let testers to write these test scenarios and add to the list of tests to be performed with every new version released. Would you recommend Mocha?