A test environment in Jest is a setup and teardown code that runs before and after your test suite.

There are several test environments in Jest: