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:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user