(rootPath)
| 23 | let project, emberAddon, projectPath; |
| 24 | |
| 25 | function setupProject(rootPath) { |
| 26 | const packageContents = require(path.join(rootPath, 'package.json')); |
| 27 | let cli = new MockCLI(); |
| 28 | |
| 29 | project = new Project(rootPath, packageContents, cli.ui, cli); |
| 30 | project.require = function () { |
| 31 | return function () {}; |
| 32 | }; |
| 33 | project.initializeAddons = function () { |
| 34 | this.addons = [EMBER_SOURCE_ADDON]; |
| 35 | }; |
| 36 | |
| 37 | return project; |
| 38 | } |
| 39 | |
| 40 | beforeEach(function () { |
| 41 | projectPath = path.resolve(__dirname, '../../fixtures/addon/simple'); |
no outgoing calls
no test coverage detected
searching dependent graphs…