tests: move tests/plugins/*/tests.yml to tests/plugins/*/yml

This commit is contained in:
lowlighter
2022-01-13 23:47:13 -05:00
parent 64427b0a91
commit 9d21c3c973
42 changed files with 3 additions and 5 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, "../tests/plugins", name, "tests.yml"), "utf8"))
.load(fs.readFileSync(path.join(__dirname, "../tests/plugins", `${name}.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")))