csvlod-ai-mcp-server
Version:
CSVLOD-AI MCP Server v3.0 with Quantum Context Intelligence - Revolutionary Context Intelligence Engine and Multimodal Processor for sovereign AI development
36 lines (30 loc) • 1.13 kB
JavaScript
const Sequencer = require('@jest/test-sequencer').default;
class CSVLODTestSequencer extends Sequencer {
sort(tests) {
// Define test priority order
const priority = {
'mcp-server.test.ts': 1, // Core components first
'individual-tools.test.ts': 2, // Individual tools second
'end-to-end.test.ts': 3, // Integration tests third
'benchmarks.test.ts': 4 // Performance tests last
};
return tests.sort((testA, testB) => {
const aPriority = this.getTestPriority(testA.path, priority);
const bPriority = this.getTestPriority(testB.path, priority);
if (aPriority !== bPriority) {
return aPriority - bPriority;
}
// If same priority, sort alphabetically
return testA.path.localeCompare(testB.path);
});
}
getTestPriority(testPath, priorityMap) {
for (const [pattern, priority] of Object.entries(priorityMap)) {
if (testPath.includes(pattern)) {
return priority;
}
}
return 999; // Unknown tests run last
}
}
module.exports = CSVLODTestSequencer;