(options: StrictOptions)
| 109 | } |
| 110 | |
| 111 | function createServer(options: StrictOptions): Server { |
| 112 | // the debug module is configured globally, we need to enable debugging |
| 113 | // *before* requiring any packages that use `debug` for logging |
| 114 | if (options.verbose) { |
| 115 | enableDebug(); |
| 116 | } |
| 117 | |
| 118 | // Some callsites may not be Flowified yet. |
| 119 | invariant(options.reporter != null, 'createServer() requires reporter'); |
| 120 | const serverOptions = Object.assign({}, options); |
| 121 | delete serverOptions.verbose; |
| 122 | const ServerClass = require('./src/Server'); |
| 123 | return new ServerClass(serverOptions); |
| 124 | } |
| 125 | |
| 126 | function createNonPersistentServer(options: Options): Server { |
| 127 | const serverOptions = { |
no test coverage detected
searching dependent graphs…