how to wait for jest results to end write the results to file that read the file?

前端 未结 0 983
误落风尘
误落风尘 2020-12-13 06:45

in node.js, i want to run exec("jest --json --outputFile=output.json",

now i want to read the content of the output file, but how can i wait for above comma

相关标签:
回答
  • 消灭零回复
提交回复
热议问题