MCPcopy Index your code
hub / github.com/cookpete/react-player / cliTest

Function cliTest

scripts/tester/tester.js:16–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14if (isCLI) cliTest();
15
16export async function cliTest() {
17 console.time('\n⚡ Tested in');
18
19 const { values: args, positionals } = parseArgs({
20 options: {},
21 strict: false,
22 allowPositionals: true,
23 });
24
25 await test(positionals, args);
26
27 console.timeEnd('\n⚡ Tested in');
28}
29
30export async function test(positionals, args) {
31 // Set flag for running tests in development mode, required for `act()`.

Callers 1

tester.jsFile · 0.85

Calls 1

testFunction · 0.85

Tested by

no test coverage detected