diff --git a/src/cli/index.ts b/src/cli/index.ts index dfedb48..6d2bbfa 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -66,7 +66,7 @@ export default class Cli { // Collect user input if (!this.args.folder.length) { - const projects = await prompts.selectOrmOrPDP() + const projects = await prompts.selectORMorPDP() if( projects !== "orm" ) { this.args.folder = projects; } else { diff --git a/src/cli/prompts.ts b/src/cli/prompts.ts index aa950f3..338dd42 100644 --- a/src/cli/prompts.ts +++ b/src/cli/prompts.ts @@ -31,7 +31,7 @@ const getTemplate = async (projects: string[]): Promise => { return template; }; -const selectOrmOrPDP = async (): Promise => { +const selectORMorPDP = async (): Promise => { logger.success( `\nThese options correspond to the root directories in the prisma-examples repository:\n`, ); @@ -142,7 +142,7 @@ const getProjectDirectory = async (): Promise => { }; export default { - selectOrmOrPDP, + selectORMorPDP, getInstallSelection, getProjectDirectory, getProjectName, diff --git a/test/cli/input-collector.test.ts b/test/cli/input-collector.test.ts index bc715d6..bf50eba 100644 --- a/test/cli/input-collector.test.ts +++ b/test/cli/input-collector.test.ts @@ -14,6 +14,7 @@ vi.mock("../../src/cli/prompts", () => ({ getProjectName: async () => "projectName", getProjectDirectory: async () => "lskdjf", getRootDir: async () => "javascript", + selectORMorPDP: async () => "orm" }, }));