I have this file structure:
test/test1.js
test/test2.js
test/test3.js
etc..
Which is executed via a test make target
$(MOCHA) --reporter $(MOCHA_REPORTER) --require mocha-setup.js $(MOCHA_TESTS)
I would like to execute a command between each of these tests.
And when I say command I mean either a make target, a function from a sepparate node module e.g:
test/myModule.js
export default function foobar(firstArg, secondArg) {
console.log('This is your args: ', firstArg, secondArg);
/* insert more code here */
}
Or something of the sort. I don't mean the beforeEach or afterEach statements.
Is this possible and if so, how? Thanks for reply.
Aucun commentaire:
Enregistrer un commentaire