MCPcopy
hub / github.com/docmirror/dev-sidecar / getNextTest

Function getNextTest

packages/core/src/modules/plugin/free-eye/client.js:75–89  ·  view source on GitHub ↗
(todoTests, doneTests)

Source from the content-addressed store, hash-verified

73}
74
75function getNextTest (todoTests, doneTests) {
76 for (const testCls of todoTests) {
77 let allPrereqsDone = true
78 for (const testTag of testCls.getPrereqs()) {
79 if (!doneTests.includes(testTag)) {
80 allPrereqsDone = false
81 break
82 }
83 }
84 if (allPrereqsDone) {
85 return testCls
86 }
87 }
88 return null
89}
90
91async function runTests (options = {}) {
92 const { testsDir, config } = options

Callers 1

runTestsFunction · 0.85

Calls 1

getPrereqsMethod · 0.45

Tested by

no test coverage detected