()
| 21 | afterAll(() => cleanup(DIR)); |
| 22 | |
| 23 | const setupFiles = () => { |
| 24 | writeFiles(DIR, { |
| 25 | '__tests__/foo.test.js': ` |
| 26 | const foo = require('../foo'); |
| 27 | test('foo', () => { expect(typeof foo).toBe('number'); }); |
| 28 | `, |
| 29 | 'foo.js': ` |
| 30 | module.exports = 0; |
| 31 | `, |
| 32 | 'package.json': JSON.stringify({ |
| 33 | jest: {}, |
| 34 | }), |
| 35 | }); |
| 36 | }; |
| 37 | |
| 38 | let testRun: ReturnType<typeof runContinuous>; |
| 39 |
no test coverage detected