Files
radicle-explorer/src/global.d.ts
T
Sebastian Martinez 4c3bd7ee04 Fix statically replaced HASH_ROUTING env variables
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>
2023-04-03 11:50:24 +02:00

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 {};