fix: change .geminiignore to .qwenignore

This commit is contained in:
mingholy.lmh
2025-09-14 19:38:40 +08:00
parent 8bb8660c72
commit 1993156721
23 changed files with 120 additions and 118 deletions

View File

@@ -409,21 +409,21 @@ describe('ReadFileTool', () => {
);
});
describe('with .geminiignore', () => {
describe('with .qwenignore', () => {
beforeEach(async () => {
await fsp.writeFile(
path.join(tempRootDir, '.geminiignore'),
path.join(tempRootDir, '.qwenignore'),
['foo.*', 'ignored/'].join('\n'),
);
});
it('should throw error if path is ignored by a .geminiignore pattern', async () => {
it('should throw error if path is ignored by a .qwenignore pattern', async () => {
const ignoredFilePath = path.join(tempRootDir, 'foo.bar');
await fsp.writeFile(ignoredFilePath, 'content', 'utf-8');
const params: ReadFileToolParams = {
absolute_path: ignoredFilePath,
};
const expectedError = `File path '${ignoredFilePath}' is ignored by .geminiignore pattern(s).`;
const expectedError = `File path '${ignoredFilePath}' is ignored by .qwenignore pattern(s).`;
expect(() => tool.build(params)).toThrow(expectedError);
});
@@ -435,7 +435,7 @@ describe('ReadFileTool', () => {
const params: ReadFileToolParams = {
absolute_path: ignoredFilePath,
};
const expectedError = `File path '${ignoredFilePath}' is ignored by .geminiignore pattern(s).`;
const expectedError = `File path '${ignoredFilePath}' is ignored by .qwenignore pattern(s).`;
expect(() => tool.build(params)).toThrow(expectedError);
});