-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(create-next-app): JS/TS prompt; enhance tests
This adds a prompt to the create-next-app CLI to ask if the user wants to use TypeScript or JavaScript. It also adds tests for the different templates (JS, TS, and experimentalApp), and some helpers to check whether an emitted project contains the correct files: - projectFilesShouldExist({ projectName, cwd, files }) - projectFilesShouldNotExist({ projectName, cwd, files }) And higher-level helpers for checking that an emitted project contains the correct files per a template specification in test/integration/create-next-app/lib/projectFiles: - shouldBeJavaScriptProject({ projectName, cwd }) - shouldBeTypeScriptProject({ projectName, cwd }) - shouldBeAppProject({ projectName, cwd })
- Loading branch information
Showing
8 changed files
with
1,072 additions
and
596 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.