(watchFile)
| 558 | }); |
| 559 | |
| 560 | async function testWatchFileOption(watchFile) { |
| 561 | const fakeCommands = fake(commands, { |
| 562 | run: () => Promise.resolve(), |
| 563 | }); |
| 564 | |
| 565 | return execProgram(['run', '--watch-file', ...watchFile], { |
| 566 | commands: fakeCommands, |
| 567 | }).then(() => { |
| 568 | sinon.assert.calledWithMatch(fakeCommands.run, { watchFile }); |
| 569 | }); |
| 570 | } |
| 571 | |
| 572 | it('calls run with a watched file', () => { |
| 573 | testWatchFileOption(['path/to/fake/file.txt']); |
no test coverage detected
searching dependent graphs…