Skip to content

Glossary: Testing Web Apps

afterAll

A Vitest function that runs a piece of code once after the last test in a file. It is typically used for one-time cleanup, such as stopping a mock server like MSW's.

Where the book teaches it

Related terms

beforeAllafterEach