fix(test): remove redundant build from beforeAll hook

CI already runs bun run build:all before validate step.
Duplicate build in test hook was causing timeout in CI.
This commit is contained in:
kaitranntt
2025-12-27 16:30:25 -05:00
parent 8a3c5a446b
commit 67a48a8305
@@ -27,14 +27,7 @@ describe('Beta Channel Implementation (Phase 3)', function () {
let httpsRequests = [];
beforeAll(async function () {
// Build the project first
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);
}
// Note: Build is handled by CI before tests run (bun run build:all)
// Import the built module
updateCheckerModule = await import('../../../dist/utils/update-checker.js');
});