• Returns true if test environment has been torn down.

    Returns boolean

    if (jest.isEnvironmentTornDown()) {
    // The Jest environment has been torn down, so stop doing work
    return;
    }