diff --git a/tests/docstrings_examples/DocTest.res b/tests/docstrings_examples/DocTest.res index b94d84945d..5767ca900d 100644 --- a/tests/docstrings_examples/DocTest.res +++ b/tests/docstrings_examples/DocTest.res @@ -149,6 +149,13 @@ let runtimeTests = async code => { }, ) + Console.log({ + "code": code, + "exitCode": exitCode, + "stdout": stdout, + "stderr": stderr, + }) + // Some expressions, like, `console.error("error")` is printed to stderr but // exit code is 0 let std = switch exitCode->Null.toOption { @@ -308,7 +315,7 @@ let main = async () => { // Ignore Js modules and RescriptTools for now ->Array.filter(f => !String.startsWith(f, "Js") && !String.startsWith(f, "RescriptTools")) ->Array.filter(f => f->String.endsWith(".res") || f->String.endsWith(".resi")) - // ->Array.filter(f => f === "String.resi") + ->Array.filter(f => f === "Uint8ClampedArray.res") ->Array.reduce([], (acc, cur) => { let isInterface = cur->String.endsWith(".resi") diff --git a/tests/docstrings_examples/DocTest.res.mjs b/tests/docstrings_examples/DocTest.res.mjs index 222c8b5e41..78364a0a16 100644 --- a/tests/docstrings_examples/DocTest.res.mjs +++ b/tests/docstrings_examples/DocTest.res.mjs @@ -122,6 +122,12 @@ async function runtimeTests(code) { let exitCode = match.code; let stderr = match.stderr; let stdout = match.stdout; + console.log({ + code: code, + exitCode: exitCode, + stdout: stdout, + stderr: stderr + }); let std; let exit = 0; if (exitCode !== null) { @@ -183,7 +189,7 @@ function extractDocFromFile(file) { RE_EXN_ID: "Assert_failure", _1: [ "DocTest.res", - 199, + 206, 9 ], Error: new Error() @@ -351,7 +357,7 @@ async function main() { } else { return f.endsWith(".resi"); } - }), [], (acc, cur) => { + }).filter(f => f === "Uint8ClampedArray.res"), [], (acc, cur) => { let isInterface = cur.endsWith(".resi"); let resi = Path.join("runtime", cur + "i"); if (!isInterface && Fs.existsSync(resi)) {