MCPcopy
hub / github.com/mozilla/web-ext / testWatchIgnoredOption

Function testWatchIgnoredOption

tests/unit/test.program.js:580–592  ·  view source on GitHub ↗
(watchIgnored)

Source from the content-addressed store, hash-verified

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']);

Callers 1

test.program.jsFile · 0.85

Calls 2

fakeFunction · 0.90
execProgramFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…