MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / setupProject

Function setupProject

tests/unit/broccoli/ember-app-test.js:49–62  ·  view source on GitHub ↗
(rootPath)

Source from the content-addressed store, hash-verified

47 let project, projectPath, app, addon;
48
49 function setupProject(rootPath) {
50 const packageContents = require(path.join(rootPath, 'package.json'));
51 let cli = new MockCLI();
52
53 project = new Project(rootPath, packageContents, cli.ui, cli);
54 project.require = function () {
55 return function () {};
56 };
57 project.initializeAddons = function () {
58 this.addons = [EMBER_SOURCE_ADDON];
59 };
60
61 return project;
62 }
63
64 beforeEach(function () {
65 projectPath = path.resolve(__dirname, '../../fixtures/addon/simple');

Callers 1

ember-app-test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…