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

Function confirmGlobBlueprinted

tests/acceptance/init-test.js:95–112  ·  view source on GitHub ↗
(pattern)

Source from the content-addressed store, hash-verified

93 }
94
95 function confirmGlobBlueprinted(pattern) {
96 let blueprintPath = path.join(path.dirname(require.resolve('@ember-tooling/classic-build-app-blueprint')), 'files');
97 let actual = pickSync('.', pattern);
98 let expected = intersect(actual, pickSync(blueprintPath, pattern));
99
100 removeIgnored(expected);
101 removeIgnored(actual);
102
103 removeTmp(expected);
104 removeTmp(actual);
105
106 expected.sort();
107
108 expect(expected).to.deep.equal(
109 actual,
110 `${EOL} expected: ${util.inspect(expected)}${EOL} but got: ${util.inspect(actual)}`
111 );
112 }
113
114 function pickSync(filePath, pattern) {
115 return globSync(`**/${pattern}`, {

Callers 1

init-test.jsFile · 0.85

Calls 3

pickSyncFunction · 0.85
removeIgnoredFunction · 0.85
removeTmpFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…