()
| 138 | } |
| 139 | |
| 140 | buildOptions() { |
| 141 | let watcher = this.options && this.options.watcher; |
| 142 | |
| 143 | if (watcher && ['polling', 'watchman', 'node', 'events'].indexOf(watcher) === -1) { |
| 144 | throw new Error(`Unknown watcher type --watcher=[polling|watchman|node|events] but was: ${watcher}`); |
| 145 | } |
| 146 | |
| 147 | return { |
| 148 | verbose: this.verbose, |
| 149 | poll: watcher === 'polling', |
| 150 | watchman: watcher === 'watchman' || watcher === 'events', |
| 151 | node: watcher === 'node', |
| 152 | }; |
| 153 | } |
| 154 | |
| 155 | then() { |
| 156 | return this.watcher.currentBuild.then.apply(this.watcher.currentBuild, arguments); |
no outgoing calls
no test coverage detected