(options = {})
| 6 | |
| 7 | class MockProject extends Project { |
| 8 | constructor(options = {}) { |
| 9 | let root = options.root || process.cwd(); |
| 10 | let pkg = options.pkg || {}; |
| 11 | let ui = options.ui || new MockUI(); |
| 12 | let instr = new Instrumentation({ |
| 13 | ui, |
| 14 | initInstrumentation: { |
| 15 | token: null, |
| 16 | node: null, |
| 17 | }, |
| 18 | }); |
| 19 | let cli = options.cli || { |
| 20 | instrumentation: instr, |
| 21 | }; |
| 22 | |
| 23 | super(root, pkg, ui, cli); |
| 24 | } |
| 25 | |
| 26 | require(file) { |
| 27 | if (file === './server') { |
nothing calls this directly
no outgoing calls
no test coverage detected