From 016f37f503ab1f129d8a8b5d1a53d580f36b6604 Mon Sep 17 00:00:00 2001 From: Stephen Leitnick Date: Tue, 10 Dec 2024 09:56:38 -0500 Subject: [PATCH] BeforeEach and AfterEach fix --- ci/Test.luau | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/Test.luau b/ci/Test.luau index f0e52053..45816e4d 100644 --- a/ci/Test.luau +++ b/ci/Test.luau @@ -310,11 +310,17 @@ function TestContext:Describe(name: string, fn: () -> ()) } self.Current = group parentGroup.Items[name] = group + for _, fn in parentGroup.BeforeEachFns do + fn() + end fn() self.Current = parentGroup if group.AnyFail then parentGroup.AnyFail = true end + for _, fn in parentGroup.AfterEachFns do + fn() + end end function TestContext:Expect(value: any): TestExpect