MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / setupProject

Function setupProject

tests/unit/broccoli/ember-addon-test.js:25–38  ·  view source on GitHub ↗
(rootPath)

Source from the content-addressed store, hash-verified

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');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…