Function afterEach

  • Run the supplied function after every child test, and any of those child tests' children, and so on.

    The test that has just completed is passed in as an argument to the function. Note that at this point, the test is fully ended, so attempting to call assertion methods on it will raise an error.

    Parameters

    Returns void