keep the betterer message generic (#51563)

This commit is contained in:
Ashley Harrison
2022-06-29 15:57:49 +01:00
committed by GitHub
parent 0de544f3a2
commit 67802e64e6
2 changed files with 27 additions and 34 deletions

View File

@@ -26,14 +26,7 @@ function countUndocumentedStories() {
// In this case the file contents don't matter:
const file = fileTestResult.addFile(filePath, '');
// Add the issue to the first character of the file:
file.addIssue(
0,
0,
`No undocumented stories are allowed, please add a ${filePath.replace(
/^(.*\/)(\w+)\.story\.tsx$/,
'$2.mdx'
)} with some documentation.`
);
file.addIssue(0, 0, 'No undocumented stories are allowed, please add an .mdx file with some documentation');
}
});
});