mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-12 17:10:34 +08:00
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>
17 lines
324 B
TypeScript
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;
|