make pokemonSprite.test ignore hidden files (e.g. .DS_Store)

This commit is contained in:
Felix Staud 2024-07-25 14:25:10 -07:00
parent c514aff854
commit b2fbc4d6b6
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}`;