(options)
| 70 | }); |
| 71 | |
| 72 | function createApp(options) { |
| 73 | options = options || {}; |
| 74 | |
| 75 | let pkg = { |
| 76 | name: 'ember-app-test', |
| 77 | dependencies: { |
| 78 | 'fake-template-preprocessor': '*', |
| 79 | 'my-addon': '*', |
| 80 | }, |
| 81 | }; |
| 82 | |
| 83 | let cli = new MockCLI(); |
| 84 | let project = new (class extends Project { |
| 85 | initializeAddons() { |
| 86 | if (this._addonsInitialized) { |
| 87 | return; |
| 88 | } |
| 89 | |
| 90 | super.initializeAddons(); |
| 91 | |
| 92 | this.addons.push(EMBER_SOURCE_ADDON); |
| 93 | } |
| 94 | })(input.path(), pkg, cli.ui, cli); |
| 95 | |
| 96 | return new EmberApp( |
| 97 | { |
| 98 | project, |
| 99 | name: pkg.name, |
| 100 | _ignoreMissingLoader: true, |
| 101 | sourcemaps: { enabled: false }, |
| 102 | }, |
| 103 | options |
| 104 | ); |
| 105 | } |
| 106 | |
| 107 | function getFiles(path) { |
| 108 | return walkSync(path, { |
no outgoing calls
no test coverage detected
searching dependent graphs…