mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +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) {
|
if (this.currentUser?.token) {
|
||||||
return { Authorization: `Bearer ${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 {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -182,12 +182,6 @@ export class PtyManager extends EventEmitter {
|
||||||
cols,
|
cols,
|
||||||
rows,
|
rows,
|
||||||
});
|
});
|
||||||
if (!fs.existsSync(workingDir)) {
|
|
||||||
throw new PtyError(
|
|
||||||
`Working directory does not exist: '${workingDir}'`,
|
|
||||||
'INVALID_WORKING_DIR'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Create session directory structure
|
// Create session directory structure
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue