Skip to content

Commit 62f44b8

Browse files
committed
test(acpx): use exported 'testing' helper instead of undefined __testing
1 parent c21aac8 commit 62f44b8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

extensions/acpx/src/runtime.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ describe("AcpxRuntime fresh reset wrapper", () => {
661661
const commandWithOverrides =
662662
'npx @zed-industries/codex-acp@^0.12.0 -c model=gpt-5.5 -c model_reasoning_effort=medium';
663663
expect(
664-
__testing.appendCodexAcpConfigOverrides(commandWithOverrides, {
664+
testing.appendCodexAcpConfigOverrides(commandWithOverrides, {
665665
model: "gpt-5.5",
666666
reasoningEffort: "medium",
667667
}),
@@ -671,7 +671,7 @@ describe("AcpxRuntime fresh reset wrapper", () => {
671671
it("skips already-configured -c model and only appends missing keys", () => {
672672
const commandWithModel = 'npx @zed-industries/codex-acp@^0.12.0 -c model=gpt-5.4';
673673
expect(
674-
__testing.appendCodexAcpConfigOverrides(commandWithModel, {
674+
testing.appendCodexAcpConfigOverrides(commandWithModel, {
675675
model: "gpt-5.5",
676676
reasoningEffort: "medium",
677677
}),
@@ -683,9 +683,9 @@ describe("AcpxRuntime fresh reset wrapper", () => {
683683
it("appends -c overrides to wrapper command without duplicating configured args", () => {
684684
const wrapperWithArgs =
685685
`${CODEX_ACP_WRAPPER_COMMAND} -c model=gpt-5.5 -c model_reasoning_effort=medium`;
686-
expect(__testing.isCodexAcpCommand(wrapperWithArgs)).toBe(true);
686+
expect(testing.isCodexAcpCommand(wrapperWithArgs)).toBe(true);
687687
expect(
688-
__testing.appendCodexAcpConfigOverrides(wrapperWithArgs, {
688+
testing.appendCodexAcpConfigOverrides(wrapperWithArgs, {
689689
model: "gpt-5.5",
690690
reasoningEffort: "medium",
691691
}),
@@ -694,19 +694,19 @@ describe("AcpxRuntime fresh reset wrapper", () => {
694694

695695
it("detects existing -c config keys in command", () => {
696696
expect(
697-
__testing.commandHasConfigKey(
697+
testing.commandHasConfigKey(
698698
'npx @zed-industries/codex-acp@^0.12.0 -c model=gpt-5.5',
699699
"model",
700700
),
701701
).toBe(true);
702702
expect(
703-
__testing.commandHasConfigKey(
703+
testing.commandHasConfigKey(
704704
'npx @zed-industries/codex-acp@^0.12.0 -c model=gpt-5.5',
705705
"model_reasoning_effort",
706706
),
707707
).toBe(false);
708708
expect(
709-
__testing.commandHasConfigKey(
709+
testing.commandHasConfigKey(
710710
'npx @zed-industries/codex-acp@^0.12.0',
711711
"model",
712712
),

0 commit comments

Comments
 (0)