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

Function runJestTwice

e2e/__tests__/randomize.test.ts:20–28  ·  view source on GitHub ↗
(
  dir: string,
  args: Array<string>,
)

Source from the content-addressed store, hash-verified

18 str.split('\n').slice(1).join('\n');
19
20function runJestTwice(
21 dir: string,
22 args: Array<string>,
23): [RunJestResult, RunJestResult] {
24 return [
25 runJest(dir, [...args, '--randomize']),
26 runJest(dir, [...args, '--config', 'different-config.json']),
27 ];
28}
29
30test('works with passing tests', () => {
31 const [result1, result2] = runJestTwice(dir, [

Callers 1

randomize.test.tsFile · 0.85

Calls 1

runJestFunction · 0.50

Tested by

no test coverage detected