MCPcopy Create free account
hub / github.com/wonderwhy-er/DesktopCommanderMCP / runDefaultShellTests

Function runDefaultShellTests

test/test-default-shell.js:370–393  ·  view source on GitHub ↗

* Main test function

()

Source from the content-addressed store, hash-verified

368 * Main test function
369 */
370async function runDefaultShellTests() {
371 console.log('=== defaultShell Configuration Tests ===\n');
372 console.log(`Platform: ${os.platform()}`);
373
374 // Test 1: Setting defaultShell to /bin/sh
375 await testDefaultShellSh();
376
377 // Test 2: Setting defaultShell to /bin/bash
378 await testDefaultShellBash();
379
380 // Test 3: Setting defaultShell to cmd (Windows)
381 await testDefaultShellCmd();
382
383 // Test 4: Setting defaultShell to pwsh (PowerShell Core)
384 await testDefaultShellPwsh();
385
386 // Test 5: Testing shell switching
387 await testShellSwitching();
388
389 // Test 6: Testing configuration persistence
390 await testConfigurationPersistence();
391
392 console.log('\n✅ All defaultShell tests completed!');
393}
394
395// Export the main test function
396export default async function runTests() {

Callers 1

runTestsFunction · 0.85

Calls 7

testDefaultShellShFunction · 0.85
testDefaultShellBashFunction · 0.85
testDefaultShellCmdFunction · 0.85
testDefaultShellPwshFunction · 0.85
testShellSwitchingFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected