diff --git a/docs/test/lifecycle.md b/docs/test/lifecycle.md index fd804c9bbb172..3fa69b1e3fffd 100644 --- a/docs/test/lifecycle.md +++ b/docs/test/lifecycle.md @@ -44,11 +44,11 @@ To scope the hooks to a test file: ```ts import { describe, beforeAll } from "bun:test"; -describe("test group", () => { - beforeAll(() => { - // setup - }); +beforeAll(() => { + // setup +}); +describe("test group", () => { // tests... }); ```