(cli, ui)
| 747 | Project.NotFoundError = NotFoundError; |
| 748 | |
| 749 | function ensureInstrumentation(cli, ui) { |
| 750 | if (cli && cli.instrumentation) { |
| 751 | return cli.instrumentation; |
| 752 | } |
| 753 | |
| 754 | // Instrumentation `require` needs to occur inline due to circular dependencies between |
| 755 | // Instrumentation => getConfig => Project => Instrumentation. getConfig is used in Project to |
| 756 | // get the project root. |
| 757 | let Instrumentation = require('./instrumentation'); |
| 758 | // created without a `cli` object (possibly from deprecated `Brocfile.js`) |
| 759 | return new Instrumentation({ ui, initInstrumentation: null }); |
| 760 | } |
| 761 | |
| 762 | function ensureUI(_ui) { |
| 763 | let ui = _ui; |
no outgoing calls
no test coverage detected
searching dependent graphs…