* Main test function
()
| 368 | * Main test function |
| 369 | */ |
| 370 | async 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 |
| 396 | export default async function runTests() { |
no test coverage detected