From ac68f5d8c1aed13d801ad7b345353ecebac39331 Mon Sep 17 00:00:00 2001 From: flx-sta <50131232+flx-sta@users.noreply.github.com> Date: Thu, 19 Sep 2024 16:01:52 -0700 Subject: [PATCH] fix: type choices only contain types the "exit" option is added separately Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- create-test-boilerplate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/create-test-boilerplate.js b/create-test-boilerplate.js index 5a7b8188583..7c49efcff79 100644 --- a/create-test-boilerplate.js +++ b/create-test-boilerplate.js @@ -14,6 +14,7 @@ import { fileURLToPath } from "url"; // Get the directory name of the current module file const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); +const typeChoices = ["Move", "Ability", "Item"]; /** * Prompts the user to select a type via list. @@ -25,7 +26,7 @@ async function promptTestType() { type: "list", name: "selectedOption", message: "What type of test would you like to create:", - choices: ["Move", "Ability", "Item", "EXIT"], + choices: [...typeChoices, "EXIT"], }, ]);