mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-17 13:15:53 +00:00
test tweaks
This commit is contained in:
parent
f59df3c645
commit
58e85de2ea
2 changed files with 4 additions and 7 deletions
|
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue