()
| 5 | const glob = require('glob'); |
| 6 | |
| 7 | function parseArgs() { |
| 8 | const args = process.argv.slice(2); |
| 9 | const browser = args[0] || 'chromium'; |
| 10 | if (!['chromium', 'firefox', 'webkit'].includes(browser)) { |
| 11 | console.error( |
| 12 | 'Invalid browser specified. Must be "chromium", "firefox", or "webkit". Using "chromium" as default.' |
| 13 | ); |
| 14 | return 'chromium'; |
| 15 | } |
| 16 | return browser; |
| 17 | } |
| 18 | |
| 19 | async function startServer() { |
| 20 | return new Promise((resolve, reject) => { |
no test coverage detected