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(() => {
|
||||
tmpDir = mkdtempSync(join(tmpdir(), 'mosaic-wizard-test-'));
|
||||
// Copy templates to tmp dir
|
||||
const templatesDir = join(repoRoot, 'templates');
|
||||
if (existsSync(templatesDir)) {
|
||||
cpSync(templatesDir, join(tmpDir, 'templates'), { recursive: true });
|
||||
// Copy templates to tmp dir — templates live under framework/ after monorepo migration
|
||||
const candidates = [join(repoRoot, 'framework', 'templates'), join(repoRoot, 'templates')];
|
||||
for (const templatesDir of candidates) {
|
||||
if (existsSync(templatesDir)) {
|
||||
cpSync(templatesDir, join(tmpDir, 'templates'), { recursive: true });
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user