()
| 151 | |
| 152 | // Main |
| 153 | async function main() { |
| 154 | const configPath = findConfig(); |
| 155 | if (!hasRealProviderConfig(configPath)) { |
| 156 | console.log('Nested runtime example skipped.'); |
| 157 | console.log('Set OPENAI_API_KEY and OPENAI_BASE_URL, or set A3S_CONFIG to a real config.'); |
| 158 | process.exit(0); |
| 159 | } |
| 160 | |
| 161 | let allPassed = true; |
| 162 | |
| 163 | allPassed = await simulateNestedRuntime() && allPassed; |
| 164 | allPassed = await testConcurrentSessions() && allPassed; |
| 165 | |
| 166 | console.log(); |
| 167 | if (allPassed) { |
| 168 | console.log('✓ All tests passed!'); |
| 169 | process.exit(0); |
| 170 | } else { |
| 171 | console.log('✗ Some tests failed'); |
| 172 | process.exit(1); |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | main().catch(e => { |
| 177 | console.error('Fatal error:', e); |
no test coverage detected