feat: Resilience Hardening & Boundary Stress Validation (v2.77.3)

This commit is contained in:
g1nation
2026-05-05 17:17:00 +09:00
parent cf10d14148
commit c2f17cfb03
11 changed files with 308 additions and 19 deletions
+5
View File
@@ -24,6 +24,7 @@ import * as path from 'path';
// ─── Setup ───
const getBaseDir = () => {
if (process.env.ASTRA_TEST_ROOT) return process.env.ASTRA_TEST_ROOT;
// VS Code Mocking 환경 고려
try {
const folders = require('vscode').workspace.workspaceFolders;
@@ -45,6 +46,10 @@ const clearCache = () => {
};
beforeAll(() => {
process.env.ASTRA_TEST_ROOT = path.join(process.cwd(), '.astra', 'tests', 'engine');
if (!fs.existsSync(process.env.ASTRA_TEST_ROOT)) {
fs.mkdirSync(process.env.ASTRA_TEST_ROOT, { recursive: true });
}
clearCache();
});