fix pokemonSprite.test.ts to run locally

It should ignore hidden (starting with `.`) files!
This commit is contained in:
Felix Staud 2024-07-26 12:50:12 -07:00
parent 3e22cdd8cf
commit 04c8f27f60
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ describe("check if every variant's sprite are correctly set", () => {
const errors = [];
const trimmedDirpath = `variant${path.sep}${dirpath.split(rootDir)[1]}`;
if (fs.existsSync(dirpath)) {
const files = fs.readdirSync(dirpath);
const files = fs.readdirSync(dirpath).filter((filename) => filename.startsWith("."));
for (const filename of files) {
const filePath = `${dirpath}${filename}`;
const trimmedFilePath = `${trimmedDirpath}${filename}`;