mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 18:15:48 +00:00
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:
1 parent
8a3c5a446b
commit
67a48a8305
1 file changed
+1
-8
@@ -27,14 +27,7 @@ describe('Beta Channel Implementation (Phase 3)', function () {
|
|||||||
let httpsRequests = [];
|
let httpsRequests = [];
|
||||||
|
|
||||||
beforeAll(async function () {
|
beforeAll(async function () {
|
||||||
// Build the project first
|
// Note: Build is handled by CI before tests run (bun run build:all)
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Import the built module
|
// Import the built module
|
||||||
updateCheckerModule = await import('../../../dist/utils/update-checker.js');
|
updateCheckerModule = await import('../../../dist/utils/update-checker.js');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user