Skip to content

Commit

Permalink
Update metrics.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Jun 5, 2021
1 parent 7f2143c commit b24c26f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/metrics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ const tests = []
for (const name in metadata.plugins) {
const cases = yaml
.load(fs.readFileSync(path.join(__dirname, "../source/plugins", name, "tests.yml"), "utf8"))
.map(({ name: test, with: inputs, modes = [], timeout }) => {
?.map(({ name: test, with: inputs, modes = [], timeout }) => {
const skip = new Set(Object.entries(metadata.templates).filter(([_, { readme: { compatibility } }]) => !compatibility[name]).map(([template]) => template))
if (!(metadata.plugins[name].supports.includes("repository")))
skip.add("repository")
return [test, inputs, { skip: [...skip], modes, timeout }]
})
}) ?? []
tests.push(...cases)
}

Expand Down

0 comments on commit b24c26f

Please sign in to comment.