mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 12:16:38 +00:00
fix(ci): enforce parity gate and stabilize test execution
This commit is contained in:
1 parent
105abcb535
commit
0aed60febb
10 files changed
+81
-17
No files matched your search
@@ -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)', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user