⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
import assert from 'node:assert/strict';
import { it } from 'node:test';
import { formatRunDuration } from './formatRunDuration';
it('formats a run duration in its two largest units', () => {
assert.equal(formatRunDuration(48_200), '48s');
assert.equal(formatRunDuration(66_743), '1m 07s');
assert.equal(formatRunDuration(7_500_000), '2h 05m');
assert.equal(formatRunDuration(-5), '0s');
});