diff --git a/test/integration/create-next-app/index.test.js b/test/integration/create-next-app/index.test.js index 63cb6de6a20a5..da7c0c858bd51 100644 --- a/test/integration/create-next-app/index.test.js +++ b/test/integration/create-next-app/index.test.js @@ -275,4 +275,16 @@ describe('create next app', () => { } }, 0o500) }) + + it('should create a project in the current directory', async () => { + await usingTempDir(async (cwd) => { + const res = await run(cwd, '.') + expect(res.exitCode).toBe(0) + + const files = ['package.json', 'pages/index.js', '.gitignore'] + files.forEach((file) => + expect(fs.existsSync(path.join(cwd, file))).toBeTruthy() + ) + }) + }) })