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

Method invokeTestem

lib/tasks/test.js:12–28  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

10 }
11
12 invokeTestem(options) {
13 let testem = this.testem;
14 let task = this;
15
16 return new Promise((resolve, reject) => {
17 testem.setDefaultOptions(task.defaultOptions(options));
18 testem.startCI(task.transformOptions(options), (exitCode, error) => {
19 if (error) {
20 reject(error);
21 } else if (exitCode !== 0) {
22 reject(new SilentError('Testem finished with non-zero exit code. Tests failed.'));
23 } else {
24 resolve(exitCode);
25 }
26 });
27 });
28 }
29
30 addonMiddlewares(options) {
31 this.project.initializeAddons();

Callers 1

runMethod · 0.95

Calls 2

defaultOptionsMethod · 0.80
transformOptionsMethod · 0.80

Tested by

no test coverage detected