mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix: change .geminiignore to .qwenignore
This commit is contained in:
@@ -82,16 +82,16 @@ node_modules/
|
||||
|
||||
it('should handle custom patterns file name', async () => {
|
||||
// No .git directory for this test
|
||||
await createTestFile('.geminiignore', 'temp/\n*.tmp');
|
||||
await createTestFile('.qwenignore', 'temp/\n*.tmp');
|
||||
|
||||
parser.loadPatterns('.geminiignore');
|
||||
parser.loadPatterns('.qwenignore');
|
||||
expect(parser.getPatterns()).toEqual(['temp/', '*.tmp']);
|
||||
expect(parser.isIgnored(path.join('temp', 'file.txt'))).toBe(true);
|
||||
expect(parser.isIgnored(path.join('src', 'file.tmp'))).toBe(true);
|
||||
});
|
||||
|
||||
it('should initialize without errors when no .geminiignore exists', () => {
|
||||
expect(() => parser.loadPatterns('.geminiignore')).not.toThrow();
|
||||
it('should initialize without errors when no .qwenignore exists', () => {
|
||||
expect(() => parser.loadPatterns('.qwenignore')).not.toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user