Skip to content

Commit e272370

Browse files
committed
Don't ignore Stdlib_* files when generating doc tests
1 parent 22ad3f5 commit e272370

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

tests/docstring_tests/DocTest.res

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ let extractExamples = async () => {
6565
let docFiles = files->Array.filter(f =>
6666
switch f {
6767
// Ignore Js modules and RescriptTools for now
68-
// Avoid Stdlib modules showing up as both "Stdlib_X" and "Stdlib.X"
69-
| f
70-
if f->String.startsWith("Js") ||
71-
f->String.startsWith("RescriptTools") ||
72-
f->String.startsWith("Stdlib_") => false
68+
| f if f->String.startsWith("Js") || f->String.startsWith("RescriptTools") => false
7369
| f if f->String.endsWith(".resi") => true
7470
| f if f->String.endsWith(".res") && !(files->Array.includes(f ++ "i")) => true
7571
| _ => false

tests/docstring_tests/DocTest.res.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)