Skip to main content
Glama
testSequencer.js614 B
const Sequencer = require('@jest/test-sequencer').default; class CustomSequencer extends Sequencer { sort(tests) { // Sort tests: unit tests first, then integration tests const copyTests = [...tests]; return copyTests.sort((testA, testB) => { const isUnitA = testA.path.includes('unit.test'); const isUnitB = testB.path.includes('unit.test'); if (isUnitA && !isUnitB) return -1; if (!isUnitA && isUnitB) return 1; // If both are same type, sort alphabetically return testA.path > testB.path ? 1 : -1; }); } } module.exports = CustomSequencer;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yostos/jrnl-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server