From 67a48a8305125959ecab468f117cc9de0badddd5 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Sat, 27 Dec 2025 16:30:25 -0500 Subject: [PATCH] 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. --- tests/unit/utils/update-checker-beta-channel.test.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/unit/utils/update-checker-beta-channel.test.js b/tests/unit/utils/update-checker-beta-channel.test.js index 4cca9820..964cfc75 100644 --- a/tests/unit/utils/update-checker-beta-channel.test.js +++ b/tests/unit/utils/update-checker-beta-channel.test.js @@ -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'); });