MCPcopy Index your code
hub / github.com/mozilla/web-ext / shouldWatchFile

Function shouldWatchFile

tests/unit/test.watcher.js:167–173  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

165
166 it('provides a callback for ignoring files', () => {
167 function shouldWatchFile(filePath) {
168 if (filePath === '/somewhere/freaky') {
169 return false;
170 } else {
171 return true;
172 }
173 }
174
175 const conf = {
176 ...defaults,

Callers 2

proxyFileChangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…