Skip to content

Commit ffacb41

Browse files
committed
test: cover Qoder environment variable parsing
Change-Id: Id4732993b917693bf0d6e7a58a0a1ab96b37515b
1 parent 4d74bcc commit ffacb41

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: "1"
2+
3+
providers:
4+
qoder:
5+
api_key: test-token
6+
7+
defaults:
8+
provider: qoder
9+
10+
agents:
11+
assistant:
12+
model: auto
13+
instructions: Test environment variable parsing.
14+
environment_variables:
15+
FEATURE_FLAG: "on"
16+
RETRY_COUNT: "3"

packages/sdk/tests/unit/parser.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,12 @@ test("loads official MCP server references without urls", async () => {
5454
},
5555
]);
5656
});
57+
58+
test("preserves Agent environment variables from YAML", async () => {
59+
const { config, errors } = await loadConfig(resolve(FIXTURES, "agent-environment-variables.yaml"));
60+
expect(errors).toEqual([]);
61+
expect(config.agents?.assistant?.environment_variables).toEqual({
62+
FEATURE_FLAG: "on",
63+
RETRY_COUNT: "3",
64+
});
65+
});

0 commit comments

Comments
 (0)