Skip to content

Glossary: Testing Web Apps

Setup file

Also written: setupFiles, test/setup.js

A file that runs before each test file, such as `test/setup.js`. It holds shared test configuration, such as cleaning up after each test and adding jest-dom matchers.

Where the book teaches it

Related terms

afterEachjest-domTest environment