We have lots of JS code with teardown after usage. For instance, in our Jest tests, we setup mocks and spys, which we clear after usage:
const spyApig = j