(input: Array<{keys: Array<string>}>)
| 17 | afterAll(() => cleanup(DIR)); |
| 18 | |
| 19 | const setupFiles = (input: Array<{keys: Array<string>}>) => { |
| 20 | writeFiles(DIR, { |
| 21 | '__tests__/bar.spec.js': ` |
| 22 | test('bar 1', () => { expect('bar').toBe('foo'); }); |
| 23 | `, |
| 24 | '__tests__/foo.spec.js': ` |
| 25 | test('foo 1', () => { expect('foo').toBe('foo'); }); |
| 26 | `, |
| 27 | 'package.json': JSON.stringify({ |
| 28 | jest: { |
| 29 | testEnvironment: 'node', |
| 30 | watchPlugins: [[pluginPath, {input}]], |
| 31 | }, |
| 32 | }), |
| 33 | }); |
| 34 | }; |
| 35 | |
| 36 | test('can press "f" to run only failed tests', () => { |
| 37 | const input = [{keys: ['f']}, {keys: ['q']}]; |
no test coverage detected