fix: resolve package.json version conflict from main merge

This commit is contained in:
Tam Nhu Tran committed 2026-02-24 00:12:56 +07:00
commit 68405239cd
11 files changed
+88 -18

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)', () => {
});
});
});
});
});