fix(ci): enforce parity gate and stabilize test execution

This commit is contained in:
Tam Nhu Tran committed 2026-02-23 23:53:09 +07:00
1 parent 105abcb535
commit 0aed60febb
10 files changed
+81 -17

No files matched your search

+4 -8
View File
@@ -28,13 +28,9 @@ const os = require('os');
describe('Version Comparison Implementation (Phase 4)', () => {
let updateCheckerModule;
// Build the project before running tests
const { execSync } = require('child_process');
try {
execSync('bun run build', { cwd: path.resolve(__dirname, '../../..'), stdio: 'pipe' });
} catch (error) {
console.warn('Build failed, tests may not work:', error.message);
}
// Dist artifacts are built by the pipeline before tests run.
// Avoid rebuilding inside test files because `bun run build` wipes `dist/`
// and can race with parallel npm/integration tests.
// Import the built modules
updateCheckerModule = require('../../../dist/utils/update-checker.js');
@@ -362,4 +358,4 @@ describe('Version Comparison Implementation (Phase 4)', () => {
});
});
});
});
});