MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / runSlice

Function runSlice

scripts/testing-slices.mjs:334–354  ·  view source on GitHub ↗
(slice)

Source from the content-addressed store, hash-verified

332}
333
334function runSlice(slice) {
335 for (const suiteId of suiteIdsForSlice(slice)) {
336 const suite = releaseCriticalSuites.find((candidate) => candidate.id === suiteId);
337 if (!suite) {
338 throw new Error(`testing-slices: unknown suite id ${suiteId}`);
339 }
340
341 beginGroup(suite.title);
342 for (const command of suite.commands) {
343 if (command.kind === "node-test") {
344 process.stdout.write(`node --test ${command.files.join(" ")}\n`);
345 runNodeTests([...command.files]);
346 continue;
347 }
348
349 process.stdout.write(`npm run ${command.script}\n`);
350 runNpmScript(command.script);
351 }
352 endGroup();
353 }
354}
355
356const args = parseArgs(process.argv.slice(2));
357

Callers 1

testing-slices.mjsFile · 0.85

Calls 6

suiteIdsForSliceFunction · 0.85
beginGroupFunction · 0.85
runNodeTestsFunction · 0.85
runNpmScriptFunction · 0.85
endGroupFunction · 0.85
writeMethod · 0.65

Tested by

no test coverage detected