Answers for "mocha hooks not working"

0

mocha hooks not working

describe('Hooks', function() {
  console.log('Prints');
  it('before', function() {
    before('Fire Up', function() {
      console.log('Nope from before');
    });
  });

  it('after', function() {
    after('Cleanup', function() {
      console.log('Nope from after');
    });
  })
});
Posted by: Guest on April-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language