diff --git a/tgui/happydom.ts b/tgui/happydom.ts index 225eab0aac..a5ca6988a3 100644 --- a/tgui/happydom.ts +++ b/tgui/happydom.ts @@ -1,5 +1,10 @@ +import { afterEach } from 'bun:test'; import { GlobalRegistrator } from '@happy-dom/global-registrator'; GlobalRegistrator.register(); -import './packages/tgui/__mocks__/setup.ts'; +const { cleanup } = await import('@testing-library/react'); + +afterEach(cleanup); + +import './packages/tgui/__mocks__/setup'; diff --git a/tgui/tsconfig.json b/tgui/tsconfig.json index 7b792ad4c5..05fbb76a62 100644 --- a/tgui/tsconfig.json +++ b/tgui/tsconfig.json @@ -28,5 +28,5 @@ "strictNullChecks": true, "target": "ESNext" }, - "include": ["./*.d.ts", "./packages"] + "include": ["./*.d.ts", "./packages", "happydom.ts"] }