test: Mock _oc_webroot for frontend unit tests

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2024-07-10 20:27:57 +02:00
parent a759182e90
commit 9e8effe3c7
No known key found for this signature in database
GPG key ID: 45FAE7268762B400

View file

@ -27,3 +27,6 @@ import 'jest-location-mock'
// Mock `window.fetch` with Jest
import 'jest-fetch-mock'
// Mock webroot to be empty
(window as unknown as Record<string, unknown>)._oc_webroot = ''