diff --git a/frontend/tests/ts/widget.spec.ts b/frontend/tests/ts/widget.spec.ts index 16472308e..4f6d25c7b 100644 --- a/frontend/tests/ts/widget.spec.ts +++ b/frontend/tests/ts/widget.spec.ts @@ -23,6 +23,12 @@ import {getElemsByTag, getElemById, getElemsByClass} global.WebSocket = WebSocket; +import { fileURLToPath } from 'url'; +import { dirname } from 'path'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = dirname(__filename); + /** * Helper function to fill DOM from a file *