From ddea0edbf8740d6261c9787c1d2313c47c535bff Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Sun, 22 May 2022 18:23:01 +0200 Subject: [PATCH] Fix mock restoring in abc frame test Signed-off-by: Tilman Vatteroth --- .../markdown-extension/abcjs/abc-frame.test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/markdown-renderer/markdown-extension/abcjs/abc-frame.test.tsx b/src/components/markdown-renderer/markdown-extension/abcjs/abc-frame.test.tsx index bd27dd464..5d9e65819 100644 --- a/src/components/markdown-renderer/markdown-extension/abcjs/abc-frame.test.tsx +++ b/src/components/markdown-renderer/markdown-extension/abcjs/abc-frame.test.tsx @@ -10,9 +10,11 @@ import { AbcFrame } from './abc-frame' import { mockI18n } from '../../test-utils/mock-i18n' describe('AbcFrame', () => { - beforeEach(async () => { + afterEach(() => { jest.resetModules() jest.restoreAllMocks() + }) + beforeEach(async () => { await mockI18n() })