* True for any directory that should NOT be watched (used while building the * Linux per-directory watch tree). Tests the directory form of the path so a * dir-only ignore rule like `build/` matches.
(dirPath: string)
| 834 | * dir-only ignore rule like `build/` matches. |
| 835 | */ |
| 836 | private shouldIgnoreDir(dirPath: string): boolean { |
| 837 | const rel = normalizePath(path.relative(this.projectRoot, dirPath)); |
| 838 | if (!rel || rel === '.' || escapesRoot(rel)) return false; // root / outside |
| 839 | if (this.isAlwaysIgnored(rel)) return true; |
| 840 | if (!this.ignoreMatcher) return false; |
| 841 | return this.ignoreMatcher.ignores(rel + '/'); |
| 842 | } |
| 843 | |
| 844 | /** |
| 845 | * Call one of the host's {@link WatchOptions} callbacks. They are diagnostics: |
no test coverage detected