@@ -164,52 +164,8 @@ describe("LocalRuntime", () => {
164164 } ) ;
165165 } ) ;
166166
167- describe ( "inherited LocalBaseRuntime methods" , ( ) => {
168- it ( "exec runs commands in projectPath" , async ( ) => {
169- const runtime = new LocalRuntime ( testDir ) ;
170-
171- const stream = await runtime . exec ( "pwd" , {
172- cwd : testDir ,
173- timeout : 10 ,
174- } ) ;
175-
176- const reader = stream . stdout . getReader ( ) ;
177- let output = "" ;
178- while ( true ) {
179- const { done, value } = await reader . read ( ) ;
180- if ( done ) break ;
181- output += new TextDecoder ( ) . decode ( value ) ;
182- }
183-
184- const exitCode = await stream . exitCode ;
185- expect ( exitCode ) . toBe ( 0 ) ;
186- expect ( output . trim ( ) ) . toBe ( testDir ) ;
187- } ) ;
188-
189- it ( "stat works on projectPath" , async ( ) => {
190- const runtime = new LocalRuntime ( testDir ) ;
191-
192- const stat = await runtime . stat ( testDir ) ;
193-
194- expect ( stat . isDirectory ) . toBe ( true ) ;
195- } ) ;
196-
197- it ( "resolvePath expands tilde" , async ( ) => {
198- const runtime = new LocalRuntime ( testDir ) ;
199-
200- const resolved = await runtime . resolvePath ( "~" ) ;
201-
202- expect ( resolved ) . toBe ( os . homedir ( ) ) ;
203- } ) ;
204-
205- it ( "normalizePath resolves relative paths" , ( ) => {
206- const runtime = new LocalRuntime ( testDir ) ;
207-
208- const result = runtime . normalizePath ( "." , testDir ) ;
209-
210- expect ( result ) . toBe ( testDir ) ;
211- } ) ;
212- } ) ;
167+ // Note: exec, stat, resolvePath, normalizePath are tested in the shared Runtime
168+ // interface tests (tests/runtime/runtime.test.ts matrix)
213169
214170 describe ( "tilde expansion in file operations" , ( ) => {
215171 it ( "stat expands tilde paths" , async ( ) => {
0 commit comments