feat(graph): Implement Graph View with Dagre Layout and Epic Scope (bb-18e)
This commit is contained in:
parent
7ab23448f0
commit
8490cb1d8c
33 changed files with 4936 additions and 38 deletions
|
|
@ -49,3 +49,24 @@ test('parseIssuesJsonl can include tombstones when requested', () => {
|
|||
|
||||
assert.equal(result.length, 2);
|
||||
});
|
||||
|
||||
test('parseIssuesJsonl supports beads dependency schema with depends_on_id and parent-child', () => {
|
||||
const input = JSON.stringify({
|
||||
id: 'bb-6',
|
||||
title: 'Dependency test',
|
||||
dependencies: [
|
||||
{ type: 'blocks', depends_on_id: 'bb-1' },
|
||||
{ type: 'parent-child', depends_on_id: 'bb-epic' },
|
||||
{ type: 'relates_to', target: 'bb-2' },
|
||||
],
|
||||
});
|
||||
|
||||
const result = parseIssuesJsonl(input);
|
||||
|
||||
assert.equal(result.length, 1);
|
||||
assert.deepEqual(result[0].dependencies, [
|
||||
{ type: 'blocks', target: 'bb-1' },
|
||||
{ type: 'parent', target: 'bb-epic' },
|
||||
{ type: 'relates_to', target: 'bb-2' },
|
||||
]);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue