@@ -5,7 +5,7 @@ import { join } from "path";
55
66import { WORKSPACE_DIR } from "../../src/core/config.js" ;
77import { getToolOutput } from "../../src/tool-output.js" ;
8- import { bunRunner } from "../../src/ extensions/bun-runner.js " ;
8+ import bunRunnerExtension from "../../extensions/integrations/ bun-runner/index.ts " ;
99import { createFakeExtensionApi } from "./fake-extension-api.js" ;
1010
1111const cleanupPaths : string [ ] = [ ] ;
@@ -28,14 +28,14 @@ afterEach(() => {
2828describe ( "bun-runner extension" , ( ) => {
2929 test ( "registers bun_run and advertises its hint" , async ( ) => {
3030 const fake = createFakeExtensionApi ( ) ;
31- bunRunner ( fake . api ) ;
31+ bunRunnerExtension ( fake . api ) ;
3232
3333 expect ( fake . tools . has ( "bun_run" ) ) . toBe ( true ) ;
3434 } ) ;
3535
3636 test ( "runs a workspace Bun script directly and discards stdout by default" , async ( ) => {
3737 const fake = createFakeExtensionApi ( ) ;
38- bunRunner ( fake . api ) ;
38+ bunRunnerExtension ( fake . api ) ;
3939 const tool = fake . tools . get ( "bun_run" ) ;
4040 if ( ! tool ) throw new Error ( "bun_run not registered" ) ;
4141
@@ -69,7 +69,7 @@ describe("bun-runner extension", () => {
6969
7070 test ( "captures stdout when requested" , async ( ) => {
7171 const fake = createFakeExtensionApi ( ) ;
72- bunRunner ( fake . api ) ;
72+ bunRunnerExtension ( fake . api ) ;
7373 const tool = fake . tools . get ( "bun_run" ) ;
7474 if ( ! tool ) throw new Error ( "bun_run not registered" ) ;
7575
@@ -99,7 +99,7 @@ describe("bun-runner extension", () => {
9999 db . initDatabase ( ) ;
100100
101101 const fake = createFakeExtensionApi ( ) ;
102- bunRunner ( fake . api ) ;
102+ bunRunnerExtension ( fake . api ) ;
103103 const tool = fake . tools . get ( "bun_run" ) ;
104104 if ( ! tool ) throw new Error ( "bun_run not registered" ) ;
105105
@@ -126,7 +126,7 @@ describe("bun-runner extension", () => {
126126
127127 test ( "rejects scripts outside the workspace" , async ( ) => {
128128 const fake = createFakeExtensionApi ( ) ;
129- bunRunner ( fake . api ) ;
129+ bunRunnerExtension ( fake . api ) ;
130130 const tool = fake . tools . get ( "bun_run" ) ;
131131 if ( ! tool ) throw new Error ( "bun_run not registered" ) ;
132132
0 commit comments