Skip to content

Commit

Permalink
fix: pass single string to isMatch, instead of array
Browse files Browse the repository at this point in the history
  • Loading branch information
DSchau committed Nov 6, 2018
1 parent 182f02b commit dbc2ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-page-creator/src/validate-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function isTestFile(filePath) {
`**/?(*.)+(spec|test).(js|ts)?(x)`,
]

return mm.isMatch(filePath, testPatterns)
return testPatterns.some(pattern => mm.isMatch(filePath, pattern))
}

module.exports = path => {
Expand Down

0 comments on commit dbc2ffe

Please sign in to comment.