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

Function destroyAfterGenerate

tests/acceptance/pods-destroy-test.js:77–84  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

75 };
76
77 const destroyAfterGenerate = async function (args) {
78 await initApp();
79
80 replaceFile('config/environment.js', '(var|let|const) ENV = {', "$1 ENV = {\npodModulePrefix: 'app/pods', \n");
81
82 await generate(args);
83 return await destroy(args);
84 };
85
86 it('blueprint foo --pod', function () {
87 let commandArgs = ['blueprint', 'foo', '--pod'];

Callers 1

Calls 4

replaceFileFunction · 0.85
initAppFunction · 0.70
generateFunction · 0.70
destroyFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…