[Dev] Fix + rename test:create boilerplate file (#6560)

* Rename `default.ts` to `default.boilerplate.ts`

* Update `test:create` script to look in the correct location

* Update `biome.jsonc` to remove explicit boilerplate folder check

* Apply Biome
This commit is contained in:
Bertie690 2025-09-15 16:51:28 -04:00 committed by GitHub
parent 8013093513
commit 65bb58a635
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 12 deletions

View File

@ -254,16 +254,9 @@
}, },
// Overrides to prevent unused import removal inside `overrides.ts`, enums & `.d.ts` files (for TSDoc linkcodes), // Overrides to prevent unused import removal inside `overrides.ts`, enums & `.d.ts` files (for TSDoc linkcodes),
// as well as inside script boilerplate files. // as well as inside script boilerplate files (whose imports will _presumably_ be used in the generated file).
{ {
// TODO: Rename existing boilerplates in the folder and remove this last alias "includes": ["**/src/overrides.ts", "**/src/enums/**/*", "**/*.d.ts", "scripts/**/*.boilerplate.ts"],
"includes": [
"**/src/overrides.ts",
"**/src/enums/**/*",
"**/*.d.ts",
"scripts/**/*.boilerplate.ts",
"**/boilerplates/*.ts"
],
"linter": { "linter": {
"rules": { "rules": {
"correctness": { "correctness": {

View File

@ -47,6 +47,6 @@ describe("{{description}}", () => {
await game.toEndOfTurn(); await game.toEndOfTurn();
expect(feebas).toHaveUsedMove({ move: MoveId.SPLASH, result: MoveResult.SUCCESS }); expect(feebas).toHaveUsedMove({ move: MoveId.SPLASH, result: MoveResult.SUCCESS });
expect(game.textInterceptor.logs).toContain(i18next.t("moveTriggers:splash")); expect(game).toHaveShownMessage(i18next.t("moveTriggers:splash"));
}); });
}); });

View File

@ -102,9 +102,9 @@ async function promptFileName(selectedType) {
function getBoilerplatePath(choiceType) { function getBoilerplatePath(choiceType) {
switch (choiceType) { switch (choiceType) {
// case "Reward": // case "Reward":
// return path.join(__dirname, "boilerplates/reward.ts"); // return path.join(__dirname, "boilerplates/reward.boilerplate.ts");
default: default:
return path.join(__dirname, "boilerplates/default.ts"); return path.join(__dirname, "boilerplates/default.boilerplate.ts");
} }
} }