MCPcopy Index your code
hub / github.com/nodejs/node / runAndWait

Function runAndWait

test/parallel/test-repl-preview.js:51–57  ·  view source on GitHub ↗
(cmds, repl)

Source from the content-addressed store, hash-verified

49}
50
51function runAndWait(cmds, repl) {
52 const promise = repl.inputStream.wait();
53 for (const cmd of cmds) {
54 repl.inputStream.run(cmd);
55 }
56 return promise;
57}
58
59async function tests(options) {
60 const repl = new REPLServer({

Callers 1

testsFunction · 0.70

Calls 2

waitMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…