* 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)
| 63 | * @return {Promise} The result of the running the command |
| 64 | */ |
| 65 | function createTestTargets(projectName, options) { |
| 66 | console.warn(`********************************************** |
| 67 | ** DO NOT USE createTestTargets ANY MORE! ** |
| 68 | ********************************************** |
| 69 | |
| 70 | Use createAndInstallTestTargets() which doesn't use a complicated packageCache system |
| 71 | and 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 |
no test coverage detected
searching dependent graphs…