Skip to content

Commit

Permalink
test: add failing test for issue #69748
Browse files Browse the repository at this point in the history
  • Loading branch information
lubieowoce committed Sep 7, 2024
1 parent 74e9154 commit 3a86827
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions test/integration/create-next-app/templates/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
})
})
})

0 comments on commit 3a86827

Please sign in to comment.