tests: auto-generated from examples.yml (#773) [skip ci]

This commit is contained in:
Simon Lecoq
2022-01-14 05:41:13 +01:00
committed by GitHub
parent 4d06539136
commit 64427b0a91
91 changed files with 524 additions and 831 deletions

View File

@@ -96,7 +96,7 @@ const metadata = JSON.parse(`${
const tests = []
for (const name in metadata.plugins) {
const cases = yaml
.load(fs.readFileSync(path.join(__dirname, "../source/plugins", name, "tests.yml"), "utf8"))
.load(fs.readFileSync(path.join(__dirname, "../tests/plugins", name, "tests.yml"), "utf8"))
?.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")))