Batch fixes before release (#1011)

* fix: improve projectRoot

* fix: improve task-master lang command

* feat: add documentation to the readme so more people can access it

* fix: expand command subtask dependency validation

* fix: update command more reliable with perplexity and other models

* chore: fix CI

* chore: implement requested changes

* chore: fix CI
This commit is contained in:
Ralph Khreish
2025-07-19 00:57:47 +03:00
parent 858d4a1c54
commit 444aa5ae19
17 changed files with 148 additions and 83 deletions

View File

@@ -109,16 +109,15 @@ describe('initTaskMaster', () => {
expect(taskMaster.getProjectRoot()).toBe(tempDir);
});
test('should throw error when no project markers found', () => {
test('should return cwd when no project markers found cuz we changed the behavior of this function', () => {
// Arrange - Empty temp directory, no project markers
process.chdir(tempDir);
// Act & Assert
expect(() => {
initTaskMaster({});
}).toThrow(
'Unable to find project root. No project markers found. Run "init" command first.'
);
// Act
const taskMaster = initTaskMaster({});
// Assert
expect(taskMaster.getProjectRoot()).toBe(tempDir);
});
});