refactor: rename GEMINI.md to QWEN.md across the codebase

This commit is contained in:
AstroAir
2025-08-09 10:33:02 +08:00
parent c09abb817f
commit 4807434d9f
10 changed files with 41 additions and 41 deletions

View File

@@ -20,7 +20,7 @@ vi.mock('fs', () => ({
describe('initCommand', () => {
let mockContext: CommandContext;
const targetDir = '/test/dir';
const geminiMdPath = path.join(targetDir, 'GEMINI.md');
const geminiMdPath = path.join(targetDir, 'QWEN.md');
beforeEach(() => {
// Create a fresh mock context for each test
@@ -38,7 +38,7 @@ describe('initCommand', () => {
vi.clearAllMocks();
});
it('should inform the user if GEMINI.md already exists', async () => {
it('should inform the user if QWEN.md already exists', async () => {
// Arrange: Simulate that the file exists
vi.mocked(fs.existsSync).mockReturnValue(true);
@@ -50,13 +50,13 @@ describe('initCommand', () => {
type: 'message',
messageType: 'info',
content:
'A GEMINI.md file already exists in this directory. No changes were made.',
'A QWEN.md file already exists in this directory. No changes were made.',
});
// Assert: Ensure no file was written
expect(fs.writeFileSync).not.toHaveBeenCalled();
});
it('should create GEMINI.md and submit a prompt if it does not exist', async () => {
it('should create QWEN.md and submit a prompt if it does not exist', async () => {
// Arrange: Simulate that the file does not exist
vi.mocked(fs.existsSync).mockReturnValue(false);
@@ -70,7 +70,7 @@ describe('initCommand', () => {
expect(mockContext.ui.addItem).toHaveBeenCalledWith(
{
type: 'info',
text: 'Empty GEMINI.md created. Now analyzing the project to populate it.',
text: 'Empty QWEN.md created. Now analyzing the project to populate it.',
},
expect.any(Number),
);