In Mocha, to perform cleanup activities after all the test cases in a suite have run, the ______ hook is used.

  • after
  • afterEach
  • teardown
  • suiteTeardown
In Mocha, the after hook is used to perform cleanup activities after all the test cases in a suite have run. It runs once after all test cases within the suite. The other options (afterEach, teardown, and suiteTeardown) represent different hook names or are not used for this specific purpose in Mocha.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *