diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000..21868a6 --- /dev/null +++ b/tests/.gitignore @@ -0,0 +1 @@ +*.wat \ No newline at end of file diff --git a/tests/node.js b/tests/node.js index 35cf77c..ddb6730 100644 --- a/tests/node.js +++ b/tests/node.js @@ -132,6 +132,14 @@ for (const file of files) { } function runTest(file, type, binary, wat) { + const watPath = path.join(path.dirname(file), path.basename(file, ".ts")) + + "." + type + ".wat"; + + // should not block testing + fs.writeFile(watPath, wat, (err) => { + if (err) console.warn(err); + }); + const context = new TestContext({ fileName: file, reporter,