Skip to content

Commit 4b6a6e7

Browse files
committed
.md files can have skip and only to help debug
1 parent 124c576 commit 4b6a6e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/helpers/load.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,14 @@ function loadFiles(dir) {
7979
switch (ext) {
8080
case '.md': {
8181
const content = fm(fs.readFileSync(absFile, 'utf8'));
82+
const { skip, only, ...options } = content.attributes;
8283
specs = [{
8384
section: name,
8485
markdown: content.body,
8586
html: fs.readFileSync(absFile.replace(/[^.]+$/, 'html'), 'utf8'),
86-
options: content.attributes
87+
options,
88+
only,
89+
skip
8790
}];
8891
break;
8992
}

0 commit comments

Comments
 (0)