Files
radicle-explorer/explorer/tests/support/config.ts
T
Rūdolfs Ošiņš e37521c739 Move explorer into explorer/
Makes explorer and desktop sibling projects, as proposed in ADR 1.
This commit only moves files; paths in CI, scripts and docs are fixed
in the following commits.
2026-10-22 11:06:33 +02:00

13 lines
538 B
TypeScript

// Test adapter for configuration in Node.js environment (Playwright tests).
//
// The app reads `buildTimeConfig`, which Vite replaces at build time (via
// the `define` option) with config.util.toObject() from the "config" npm
// package. Since Vite's `define` replacement doesn't run in Node.js, this file
// provides the same configuration data by directly importing and converting
// the "config" package.
import nodeConfig from "config";
const config = nodeConfig.util.toObject() as typeof buildTimeConfig;
export default config;