mocha hooks not working

Solutions on MaxInterview for mocha hooks not working by the best coders in the world

showing results for - "mocha hooks not working"
Angela
08 Oct 2020
1describe('Hooks', function() {
2  console.log('Prints');
3  it('before', function() {
4    before('Fire Up', function() {
5      console.log('Nope from before');
6    });
7  });
8
9  it('after', function() {
10    after('Cleanup', function() {
11      console.log('Nope from after');
12    });
13  })
14});