(defaultPath, specified, shouldWatch)
| 217 | }; |
| 218 | |
| 219 | let buildTreeFor = (defaultPath, specified, shouldWatch) => { |
| 220 | if (specified !== null && specified !== undefined && typeof specified !== 'string') { |
| 221 | return specified; |
| 222 | } |
| 223 | |
| 224 | let tree = null; |
| 225 | let resolvedPath = resolvePathFor(defaultPath, specified); |
| 226 | if (fs.existsSync(resolvedPath)) { |
| 227 | if (shouldWatch !== false) { |
| 228 | tree = new WatchedDir(resolvedPath); |
| 229 | } else { |
| 230 | tree = new UnwatchedDir(resolvedPath); |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | return tree; |
| 235 | }; |
| 236 | let trees = (options && options.trees) || {}; |
| 237 | |
| 238 | let appTree = buildTreeFor('app', trees.app); |
nothing calls this directly
no outgoing calls
no test coverage detected