fix: more regression bugs (#956)

* fix: more regression bugs

* chore: fix format

* chore: fix unit tests

* chore: fix format
This commit is contained in:
Ralph Khreish
2025-07-11 15:23:54 +03:00
committed by GitHub
parent 3e61d26235
commit 21392a1117
9 changed files with 106 additions and 32 deletions

View File

@@ -557,7 +557,10 @@ describe('getConfig Tests', () => {
// Assert
expect(config).toEqual(DEFAULT_CONFIG);
expect(mockFindProjectRoot).not.toHaveBeenCalled(); // Explicit root provided
expect(fsExistsSyncSpy).toHaveBeenCalledWith(MOCK_CONFIG_PATH);
// The implementation checks for .taskmaster directory first
expect(fsExistsSyncSpy).toHaveBeenCalledWith(
path.join(MOCK_PROJECT_ROOT, '.taskmaster')
);
expect(fsReadFileSyncSpy).not.toHaveBeenCalled(); // No read if file doesn't exist
expect(consoleWarnSpy).toHaveBeenCalledWith(
expect.stringContaining('not found at provided project root')