feat: add auto-update to every command when your task-master instance is out of date (#1217)

This commit is contained in:
Ralph Khreish
2025-09-18 18:35:32 +02:00
committed by GitHub
parent cf3339fa48
commit e6de285cea
13 changed files with 312 additions and 140 deletions

View File

@@ -25,6 +25,8 @@ describe('Complex Cross-Tag Scenarios', () => {
// Create test directory
testDir = fs.mkdtempSync(path.join(__dirname, 'test-'));
process.chdir(testDir);
// Keep integration timings deterministic
process.env.TASKMASTER_SKIP_AUTO_UPDATE = '1';
// Initialize task-master
execSync(`node ${binPath} init --yes`, {
@@ -137,6 +139,7 @@ describe('Complex Cross-Tag Scenarios', () => {
if (testDir && fs.existsSync(testDir)) {
fs.rmSync(testDir, { recursive: true, force: true });
}
delete process.env.TASKMASTER_SKIP_AUTO_UPDATE;
});
describe('Circular Dependency Detection', () => {
@@ -369,7 +372,7 @@ describe('Complex Cross-Tag Scenarios', () => {
fs.writeFileSync(tasksPath, JSON.stringify(largeTaskSet, null, 2));
// Should complete within reasonable time
const timeout = process.env.CI ? 10000 : 5000;
const timeout = process.env.CI ? 11000 : 6000;
const startTime = Date.now();
execSync(
`node ${binPath} move --from=50 --from-tag=master --to-tag=in-progress --with-dependencies`,