fix(mosaic): wizard integration test — templates path after monorepo migration
Templates moved from packages/mosaic/templates/ to packages/mosaic/framework/templates/ in #345. The test's existsSync guard silently skipped the copy, causing writeSoul to early-return without writing SOUL.md.
This commit is contained in:
@@ -20,10 +20,13 @@ describe('Full Wizard (headless)', () => {
|
|||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
tmpDir = mkdtempSync(join(tmpdir(), 'mosaic-wizard-test-'));
|
tmpDir = mkdtempSync(join(tmpdir(), 'mosaic-wizard-test-'));
|
||||||
// Copy templates to tmp dir
|
// Copy templates to tmp dir — templates live under framework/ after monorepo migration
|
||||||
const templatesDir = join(repoRoot, 'templates');
|
const candidates = [join(repoRoot, 'framework', 'templates'), join(repoRoot, 'templates')];
|
||||||
if (existsSync(templatesDir)) {
|
for (const templatesDir of candidates) {
|
||||||
cpSync(templatesDir, join(tmpDir, 'templates'), { recursive: true });
|
if (existsSync(templatesDir)) {
|
||||||
|
cpSync(templatesDir, join(tmpDir, 'templates'), { recursive: true });
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user