Skip to content

Commit

Permalink
ci(test): use some instead of filter with length
Browse files Browse the repository at this point in the history
Co-authored-by: Simen Bekkhus <[email protected]>
  • Loading branch information
ttshivers and SimenB authored Oct 1, 2020
1 parent 23ea55a commit e98c222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genMatrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const testFiles = [
const nodeDirRegex = /^\d+$/;

const areTestFilesChanged = (changedFiles) => changedFiles
.filter((file) => testFiles.includes(file)).length;
.some((file) => testFiles.includes(file));

// Returns a list of the child directories in the given path
const getChildDirectories = (parent) => fs.readdirSync(parent, { withFileTypes: true })
Expand Down

0 comments on commit e98c222

Please sign in to comment.