mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-11-22 04:19:40 +00:00
test(command-code): isolate the default CLI version check from COMMAND_CODE_VERSION
COMMAND_CODE_VERSION is a supported override read at module load, so a developer environment that sets it made the default-version assertions fail. Clear it before the per-process import.
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
// The default-version checks below must not depend on the developer's
|
||||
// environment: COMMAND_CODE_VERSION is a supported override, read once at
|
||||
// module load, so clear it before this file's (per-process) import.
|
||||
delete process.env.COMMAND_CODE_VERSION;
|
||||
|
||||
const { COMMAND_CODE_VERSION, buildCommandCodeCliHeaders } =
|
||||
await import("../../open-sse/executors/commandCode.ts");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user