(_options)
| 27 | } |
| 28 | |
| 29 | static async build(_options) { |
| 30 | let watcher = new this(_options, ConstructedFromBuilder); |
| 31 | await watcher.setupBroccoliWatcher(_options); |
| 32 | |
| 33 | // This indirection is because Watcher instances are themselves spec |
| 34 | // noncompliant thennables (see the then() method) so returning watcher |
| 35 | // directly will interfere with `await Watcher.build()` |
| 36 | return { watcher }; |
| 37 | } |
| 38 | |
| 39 | async setupBroccoliWatcher() { |
| 40 | let options = this.buildOptions(); |
no test coverage detected