We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2650d2 commit 05333a8Copy full SHA for 05333a8
index.ts
@@ -359,12 +359,14 @@ files.forEach((file) => {
359
if (html && !html.endsWith('\n')) {
360
html = html.concat('\n');
361
}
362
- jsonTestCases = jsonTestCases.concat({
363
- title: `${file.replace('.yml', '')}: ${testCase.title}`,
364
- mdast: testCase.mdast,
365
- myst: testCase.myst,
366
- html,
367
- });
+ if (testCase.myst !== undefined && testCase.mdast !== undefined) {
+ jsonTestCases.push({
+ title: `${file.replace('.yml', '')}: ${testCase.title}`,
+ mdast: testCase.mdast,
+ myst: testCase.myst,
+ html,
368
+ });
369
+ }
370
371
if (testCase.id) {
372
const outFile = join(directory, `${testCase.id}.md`);
0 commit comments