• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IgniteUI / igniteui-cli / 13497677367

24 Feb 2025 12:09PM UTC coverage: 70.044% (+0.003%) from 70.041%
13497677367

Pull #1378

github

web-flow
Merge 095562dd6 into 1849e0c62
Pull Request #1378: fix: update eslint and fix warnings

917 of 1348 branches covered (68.03%)

Branch coverage included in aggregate %.

6 of 8 new or added lines in 2 files covered. (75.0%)

4690 of 6657 relevant lines covered (70.45%)

87.88 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.24
/packages/core/util/FileSystem.ts
1

2
import * as fs from "fs";
11✔
3
import * as glob from "glob";
11✔
4
import * as path from "path";
11✔
5
import { IFileSystem } from "../types/FileSystem";
6

7
export class FsFileSystem implements IFileSystem {
11✔
8
        public fileExists(filePath: string): boolean {
9
                try {
315✔
10
                        return fs.statSync(filePath).isFile();
315✔
11
                } catch (err) {
12
                        return false;
208✔
13
                }
14
        }
15
        public readFile(filePath: string, encoding?: BufferEncoding): string {
16
                if (encoding) {
82✔
17
                        return fs.readFileSync(filePath, { encoding });
56✔
18
                }
19
                return fs.readFileSync(filePath).toString();
26✔
20
        }
21
        public writeFile(filePath: string, text: string): void {
22
                fs.writeFileSync(filePath, text);
18✔
23
        }
24
        public directoryExists(dirPath: string): boolean {
25
                try {
1,050✔
26
                        return fs.statSync(dirPath).isDirectory();
1,050✔
27
                } catch (e) {
28
                        return false;
878✔
29
                }
30
        }
31

32
        public glob(dirPath: string, pattern: string): string[] {
NEW
33
                return glob.sync(path.join(dirPath, pattern), { nodir: true })
×
NEW
34
                        .map(filePath => filePath.replace(/\\/g, "/"));
×
35
        }
36
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc