From 3b9104429bb482f75bdfe96143ab65064caaa4a1 Mon Sep 17 00:00:00 2001 From: Jarvis Date: Wed, 1 Apr 2026 21:51:34 -0500 Subject: [PATCH] =?UTF-8?q?fix(mosaic):=20wizard=20integration=20test=20?= =?UTF-8?q?=E2=80=94=20templates=20path=20after=20monorepo=20migration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../mosaic/__tests__/integration/full-wizard.test.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/mosaic/__tests__/integration/full-wizard.test.ts b/packages/mosaic/__tests__/integration/full-wizard.test.ts index c46242b..b045f7f 100644 --- a/packages/mosaic/__tests__/integration/full-wizard.test.ts +++ b/packages/mosaic/__tests__/integration/full-wizard.test.ts @@ -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; + } } });