Currently most test routines run synchronously. But number of tests and files continiusly growing and this could be a problem in future.
Proposed steps:
glob.sync -> await glob after util.promisify or use tiny-glob / globby
2) Switch from WebAssembly.Instance +WebAssembly.Module to WebAssembly.instantiateStreaming for instantiation.
fs.readFileSync -> fs.readFile, fs.writeFileSync -> fs.writeFile
- spawn/fork process for each separate test (?)
Currently most test routines run synchronously. But number of tests and files continiusly growing and this could be a problem in future.
Proposed steps:
glob.sync->await globafterutil.promisifyor use tiny-glob / globby2) Switch fromWebAssembly.Instance+WebAssembly.ModuletoWebAssembly.instantiateStreamingfor instantiation.fs.readFileSync->fs.readFile,fs.writeFileSync->fs.writeFile