summaryrefslogtreecommitdiff
path: root/packages/core/src/services/fileDiscoveryService.test.ts
diff options
context:
space:
mode:
authorN. Taylor Mullen <[email protected]>2025-06-08 18:32:19 -0700
committerGitHub <[email protected]>2025-06-08 18:32:19 -0700
commit72fa01f62d01e6cf79b78fc9fed6d042386ace21 (patch)
treee310a5782f3ce4299326dc6f3ea217f5cecc5270 /packages/core/src/services/fileDiscoveryService.test.ts
parentd061419452e1faeb3cc43d1aa5d21dfc799f36dd (diff)
feat(git): Refactor gitignore handling to use `ignore` library instead of `minimatch` (#864)
Diffstat (limited to 'packages/core/src/services/fileDiscoveryService.test.ts')
-rw-r--r--packages/core/src/services/fileDiscoveryService.test.ts27
1 files changed, 0 insertions, 27 deletions
diff --git a/packages/core/src/services/fileDiscoveryService.test.ts b/packages/core/src/services/fileDiscoveryService.test.ts
index 2ef83bfa..368f4d23 100644
--- a/packages/core/src/services/fileDiscoveryService.test.ts
+++ b/packages/core/src/services/fileDiscoveryService.test.ts
@@ -140,33 +140,6 @@ describe('FileDiscoveryService', () => {
});
});
- describe('getIgnoreInfo', () => {
- beforeEach(async () => {
- await service.initialize();
- });
-
- it('should return git ignored patterns', () => {
- const info = service.getIgnoreInfo();
-
- expect(info.gitIgnored).toEqual(['.git/**', 'node_modules/**']);
- });
-
- it('should return empty arrays when git ignore parser is not initialized', async () => {
- const uninitializedService = new FileDiscoveryService(mockProjectRoot);
- const info = uninitializedService.getIgnoreInfo();
-
- expect(info.gitIgnored).toEqual([]);
- });
-
- it('should handle git ignore parser returning null patterns', async () => {
- mockGitIgnoreParser.getIgnoredPatterns.mockReturnValue([] as string[]);
-
- const info = service.getIgnoreInfo();
-
- expect(info.gitIgnored).toEqual([]);
- });
- });
-
describe('isGitRepository', () => {
it('should return true when isGitRepo is explicitly set to true in options', () => {
const result = service.isGitRepository({ isGitRepo: true });