21 lines · 697 B · TypeScript
RawDownload
import { describe, expect, it } from "vite-plus/test"; import { mergeProviderInstanceEnvironment } from "./ProviderInstanceEnvironment.ts"; describe("mergeProviderInstanceEnvironment", () => {  it("overrides inherited environment values and preserves empty strings", () => {    expect(      mergeProviderInstanceEnvironment(        [          { name: "OPENROUTER_API_KEY", value: "sk-or-test", sensitive: true },          { name: "ANTHROPIC_API_KEY", value: "", sensitive: false },        ],        { ANTHROPIC_API_KEY: "inherited", PATH: "/bin" },      ),    ).toMatchObject({      OPENROUTER_API_KEY: "sk-or-test",      ANTHROPIC_API_KEY: "",      PATH: "/bin",    });  });});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t