make pokemonSprite.test ignore hidden files (e.g. .DS_Store)
This commit is contained in:
parent
c514aff854
commit
b2fbc4d6b6
|
@ -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}`;
|
||||
|
|
Loading…
Reference in New Issue