(stderr: string)
| 29 | }; |
| 30 | |
| 31 | const verifyNumPassed = (stderr: string) => { |
| 32 | const numberOfTestsPassed = (stderr.match(/\bPASS\b/g) || []).length; |
| 33 | // assuming -1 because of package.json, but +1 because of the individual test file |
| 34 | expect(numberOfTestsPassed).toBe(Object.keys(testFiles).length); |
| 35 | }; |
| 36 | |
| 37 | test('prints a warning if a worker is force exited', () => { |
| 38 | writeFiles(DIR, { |
no test coverage detected