priority
Sets the priority for this stub. Higher values indicate higher priority.
Priority is a tiebreaker: it only applies when two stubs match with equal specificity scores.
Example:
// Higher-priority stub — wins over default-priority stubs when scores tie
mokksy.post { path("/api"); priority(1) }
// Lower-priority fallback — selected only when no higher-priority stub with the same score matches
mokksy.post { path("/api"); priority(-1) }Content copied to clipboard