MCPcopy
hub / github.com/jestjs/jest / numberOfTestRuns

Function numberOfTestRuns

e2e/__tests__/watch-plugins.test.ts:10–13  ·  view source on GitHub ↗
(stderr: string)

Source from the content-addressed store, hash-verified

8
9const testCompletedRE = /Ran all test suites./g;
10const numberOfTestRuns = (stderr: string): number => {
11 const matches = stderr.match(testCompletedRE);
12 return matches ? matches.length : 0;
13};
14
15test.each(['js', 'cjs'])('supports %s watch plugins', async watchPluginDir => {
16 const testRun = runContinuous(`watch-plugins/${watchPluginDir}`, [

Callers 1

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected