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

Function createTestTargets

tests/helpers/acceptance.js:65–79  ·  view source on GitHub ↗

* Use `createTestTargets` in the before hook to do the initial * setup of a project. This will ensure that we limit the amount of times * we go to the network to fetch dependencies. * * @method createTestTargets * @param {String} projectName The name of the project. Can be an app or addon. *

(projectName, options)

Source from the content-addressed store, hash-verified

63 * @return {Promise} The result of the running the command
64 */
65function createTestTargets(projectName, options) {
66 console.warn(`**********************************************
67** DO NOT USE createTestTargets ANY MORE! **
68**********************************************
69
70Use createAndInstallTestTargets() which doesn't use a complicated packageCache system
71and relies on the pnpm store for caching instead.`);
72
73 let outputDir = quickTemp.makeOrReuse(dirs, projectName);
74
75 options = options || {};
76 options.command = options.command || 'new';
77
78 return applyCommand(options.command, projectName, '--skip-npm', `--directory=${outputDir}`).catch(handleResult);
79}
80
81/**
82 * Tears down the targeted project download directory

Calls 1

applyCommandFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…