Skip to content

Commit 76e2973

Browse files
rgarciaclaude
andcommitted
Adapt extension-host tests to the instance-based scripted-provider fixture
pi 0.80's Models API replaced the global api-registry with isolated Models collections, so the shared scripted-provider test fixture no longer mutates global state and dropped its dispose() teardown. Remove the now-stale fx.dispose() calls from the extension-host test afterEach hooks; the host's own dispose() still runs, and the scripted collection needs no teardown. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 829ec6f commit 76e2973

9 files changed

Lines changed: 0 additions & 9 deletions

‎packages/cli/test/e2e/agent-start-counter-shortcut.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ let host: HarnessExtensionHost | undefined;
5050
afterEach(async () => {
5151
await host?.dispose();
5252
host = undefined;
53-
await fx?.dispose();
5453
fx = undefined;
5554
});
5655

‎packages/cli/test/e2e/dom-table-extraction.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ let host: HarnessExtensionHost | undefined;
3636
afterEach(async () => {
3737
await host?.dispose();
3838
host = undefined;
39-
await fx?.dispose();
4039
fx = undefined;
4140
});
4241

‎packages/cli/test/e2e/form-fill-macro.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ let host: HarnessExtensionHost | undefined;
3434
afterEach(async () => {
3535
await host?.dispose();
3636
host = undefined;
37-
await fx?.dispose();
3837
fx = undefined;
3938
});
4039

‎packages/cli/test/e2e/nav-shortcut-tool.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ let host: HarnessExtensionHost | undefined;
4747
afterEach(async () => {
4848
await host?.dispose();
4949
host = undefined;
50-
await fx?.dispose();
5150
fx = undefined;
5251
});
5352

‎packages/cli/test/e2e/template-match-click.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ let host: HarnessExtensionHost | undefined;
4949
afterEach(async () => {
5050
await host?.dispose();
5151
host = undefined;
52-
await fx?.dispose();
5352
fx = undefined;
5453
});
5554

‎packages/cli/test/extension-loader.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ let host: HarnessExtensionHost | undefined;
1313
afterEach(async () => {
1414
await host?.dispose();
1515
host = undefined;
16-
await fx?.dispose();
1716
fx = undefined;
1817
});
1918

‎packages/cli/test/extension-reload.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ let host: HarnessExtensionHost | undefined;
1212
afterEach(async () => {
1313
await host?.dispose();
1414
host = undefined;
15-
await fx?.dispose();
1615
fx = undefined;
1716
});
1817

‎packages/cli/test/extensions.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ let host: HarnessExtensionHost | undefined;
1515
afterEach(async () => {
1616
await host?.dispose();
1717
host = undefined;
18-
await fx?.dispose();
1918
fx = undefined;
2019
});
2120

‎packages/cli/test/self-extend.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ let host: HarnessExtensionHost | undefined;
5757
afterEach(async () => {
5858
await host?.dispose();
5959
host = undefined;
60-
await fx?.dispose();
6160
fx = undefined;
6261
});
6362

0 commit comments

Comments
 (0)