Files
radicle-explorer/src/index.ts
T
Rūdolfs Ošiņš d8dd0d8e5b Fix flaky landingPage visual spec
This makes sure that the stubs are always loaded before the app.
We assume that previously the load order was not deterministic due to
the dynamic import.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-01-06 14:53:54 +01:00

17 lines
324 B
TypeScript

import * as FakeTimers from "@sinonjs/fake-timers";
if (window.PLAYWRIGHT && window.initializeTestStubs !== undefined) {
window.e2eTestStubs = {
FakeTimers: FakeTimers,
};
window.initializeTestStubs();
}
import App from "@app/App.svelte";
const app = new App({
target: document.body,
});
export default app;