test tweaks

This commit is contained in:
Peter Steinberger 2025-06-25 11:59:09 +02:00
parent f59df3c645
commit 58e85de2ea
2 changed files with 4 additions and 7 deletions

View file

@ -260,7 +260,10 @@ export class AuthClient {
if (this.currentUser?.token) {
return { Authorization: `Bearer ${this.currentUser.token}` };
}
console.warn('⚠️ No token available for auth header');
// Suppress warning in test environment to reduce noise
if (typeof process === 'undefined' || process.env?.NODE_ENV !== 'test') {
console.warn('⚠️ No token available for auth header');
}
return {};
}

View file

@ -182,12 +182,6 @@ export class PtyManager extends EventEmitter {
cols,
rows,
});
if (!fs.existsSync(workingDir)) {
throw new PtyError(
`Working directory does not exist: '${workingDir}'`,
'INVALID_WORKING_DIR'
);
}
try {
// Create session directory structure