(watchIgnored)
| 578 | }); |
| 579 | |
| 580 | async function testWatchIgnoredOption(watchIgnored) { |
| 581 | const fakeCommands = fake(commands, { |
| 582 | run: () => Promise.resolve(), |
| 583 | }); |
| 584 | |
| 585 | await execProgram(['run', '--watch-ignored', ...watchIgnored], { |
| 586 | commands: fakeCommands, |
| 587 | }); |
| 588 | |
| 589 | sinon.assert.calledWithMatch(execProgram, fakeCommands.run, { |
| 590 | watchIgnored, |
| 591 | }); |
| 592 | } |
| 593 | |
| 594 | it('calls run with a single watchIgnored pattern', () => { |
| 595 | testWatchIgnoredOption(['path/to/fake/file1.txt']); |
no test coverage detected
searching dependent graphs…