fix: prevent bogus shell permission rules in tests

This commit is contained in:
LaZzyMan 2026-03-20 17:55:33 +08:00
parent fbf5ed57d6
commit fcd31e2adf
5 changed files with 64 additions and 2 deletions

View file

@ -9,4 +9,10 @@ if (process.env['NO_COLOR'] !== undefined) {
delete process.env['NO_COLOR'];
}
// Avoid writing per-session debug log files during CLI tests.
// Individual tests can still opt in by overriding this env var explicitly.
if (process.env['QWEN_DEBUG_LOG_FILE'] === undefined) {
process.env['QWEN_DEBUG_LOG_FILE'] = '0';
}
import './src/test-utils/customMatchers.js';