From 4b6a6e72b5a42a32aef4a35c1868abe06f0c3d57 Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Mon, 1 Jul 2019 08:07:36 -0500 Subject: [PATCH] .md files can have skip and only to help debug --- test/helpers/load.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/helpers/load.js b/test/helpers/load.js index 20ee43aad5..dc35427875 100644 --- a/test/helpers/load.js +++ b/test/helpers/load.js @@ -79,11 +79,14 @@ function loadFiles(dir) { switch (ext) { case '.md': { const content = fm(fs.readFileSync(absFile, 'utf8')); + const { skip, only, ...options } = content.attributes; specs = [{ section: name, markdown: content.body, html: fs.readFileSync(absFile.replace(/[^.]+$/, 'html'), 'utf8'), - options: content.attributes + options, + only, + skip }]; break; }