mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 15:21:38 +00:00
10 lines
342 B
TypeScript
10 lines
342 B
TypeScript
/**
|
|
* Environment helper for Chutes model discovery behavior in tests.
|
|
*/
|
|
/** Returns whether dynamic Chutes model discovery should use test behavior. */
|
|
export function isChutesModelDiscoveryTestEnvironment(
|
|
env: Record<string, string | undefined> = process.env,
|
|
): boolean {
|
|
return env.NODE_ENV === "test" || env.VITEST === "true";
|
|
}
|