Skip to content

Glossary: Testing Web Apps

beforeAll

A Vitest function that runs code once before the first test in a file. It is typically used for one-time setup, such as starting a mock server like MSW's.

Where the book teaches it

Related terms

afterAllafterEachMSW