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

Function assertDestroyAfterGenerate

tests/acceptance/pods-destroy-test.js:64–75  ·  view source on GitHub ↗
(args, files)

Source from the content-addressed store, hash-verified

62 }
63
64 const assertDestroyAfterGenerate = async function (args, files) {
65 await initApp();
66
67 replaceFile('config/environment.js', '(var|let|const) ENV = {', "$1 ENV = {\npodModulePrefix: 'app/pods', \n");
68
69 await generate(args);
70 assertFilesExist(files);
71
72 let result = await destroy(args);
73 expect(result, 'destroy command did not exit with errorCode').to.be.an('object');
74 assertFilesNotExist(files);
75 };
76
77 const destroyAfterGenerate = async function (args) {
78 await initApp();

Callers 1

Calls 6

replaceFileFunction · 0.85
initAppFunction · 0.70
generateFunction · 0.70
assertFilesExistFunction · 0.70
destroyFunction · 0.70
assertFilesNotExistFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…