mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 16:50:47 +08:00
Also moves the HASH_ROUTING env variable from being modified inside the hashRouter.spec.ts into the webserver config in the playwright.config.ipfs.ts Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
26 lines
731 B
TypeScript
26 lines
731 B
TypeScript
/* eslint-disable @typescript-eslint/naming-convention */
|
|
import type { Config } from "@app/lib/config";
|
|
import type { FakeTimers } from "@sinonjs/fake-timers";
|
|
|
|
declare global {
|
|
interface Window {
|
|
// Defined in vite.config.ts and are available in all environments except
|
|
// production.
|
|
VITEST: boolean;
|
|
PLAYWRIGHT: boolean;
|
|
|
|
// APP_CONFIG is set from within Playwright tests at runtime.
|
|
// To better understand how it works together, have a look at:
|
|
// tests/support/fixtures.ts
|
|
// src/config.ts
|
|
APP_CONFIG: Config;
|
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
initializeTestStubs?: Function;
|
|
e2eTestStubs: {
|
|
FakeTimers: FakeTimers;
|
|
};
|
|
}
|
|
}
|
|
|
|
export {};
|