fix: type choices only contain types

the "exit" option is added separately

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
flx-sta 2024-09-19 16:01:52 -07:00 committed by GitHub
parent dd12482180
commit ac68f5d8c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"],
},
]);