From 2ebe89e6d6027f0b679b271f8200665d037badde Mon Sep 17 00:00:00 2001 From: Emanuele Feliziani Date: Tue, 12 Sep 2023 08:50:53 +0200 Subject: [PATCH] Add comment Signed-off-by: Emanuele Feliziani --- jest.setup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jest.setup.js b/jest.setup.js index 391dbd1f3..65a97ade6 100644 --- a/jest.setup.js +++ b/jest.setup.js @@ -121,6 +121,7 @@ const defaultStyle = { } const mockGetComputedStyle = (el) => { return { + // since we don't load stylesheets in the tests, the style prop is all the css applied, so it's a safe fallback getPropertyValue: (prop) => el.style?.[prop] || defaultStyle[prop] } }