From 3a86827369d012921245c8a92043c0cc5b1e79c4 Mon Sep 17 00:00:00 2001 From: Janka Uryga Date: Fri, 6 Sep 2024 14:23:34 +0200 Subject: [PATCH] test: add failing test for issue #69748 --- .../create-next-app/templates/app.test.ts | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/test/integration/create-next-app/templates/app.test.ts b/test/integration/create-next-app/templates/app.test.ts index bac32a90cc040..2cb7f8f99b7b8 100644 --- a/test/integration/create-next-app/templates/app.test.ts +++ b/test/integration/create-next-app/templates/app.test.ts @@ -147,4 +147,44 @@ describe('create-next-app --app (App Router)', () => { }) }) }) + + const reproName = 'unknown-repro-69748' + it(`should create ${reproName} project`, async () => { + await useTempDir(async (cwd) => { + const projectName = reproName + const childProcess = createNextApp( + [ + projectName, + '--ts', + '--app', + '--eslint', + '--src-dir', + '--tailwind', + // '--no-import-alias', // WORKS + '--import-alias=@acme/*', // breaks + // '--turbo', // no effect + // '--use-pnpm', // no effect + ], + { + cwd, + stdio: 'inherit', + }, + testVersion + ) + + const exitCode = await spawnExitPromise(childProcess) + expect(exitCode).toBe(0) + shouldBeTemplateProject({ + cwd, + projectName, + template: 'app-tw', + mode: 'ts', + srcDir: true, + }) + await tryNextDev({ + cwd, + projectName, + }) + }) + }) })