MCPcopy
hub / github.com/ampproject/amphtml / unit

Function unit

build-system/tasks/unit.js:34–46  ·  view source on GitHub ↗

* @return {Promise }

()

Source from the content-addressed store, hash-verified

32 * @return {Promise<void>}
33 */
34async function unit() {
35 maybePrintArgvMessages();
36 if (argv.local_changes && !(await getUnitTestsToRun())) {
37 return;
38 }
39
40 const config = new RuntimeTestConfig('unit');
41 const runner = new Runner(config);
42
43 await runner.setup();
44 await runner.run();
45 await runner.teardown();
46}
47
48module.exports = {
49 unit,

Callers

nothing calls this directly

Calls 5

maybePrintArgvMessagesFunction · 0.85
getUnitTestsToRunFunction · 0.85
setupMethod · 0.45
runMethod · 0.45
teardownMethod · 0.45

Tested by

no test coverage detected