summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkaps316 <[email protected]>2026-04-12 19:40:20 +0530
committerruki <[email protected]>2026-04-20 09:35:36 +0800
commit7eada8439652626e484c0011a4ae536b916cc7fe (patch)
treeff7141a877441ceda06d55c2b30e72f5d9435803 /tests
parent0c36a9b4acb9150c607b3d70291ad50148785038 (diff)
fix(depgraph): use direct deps and align print output with JSON
- Switch from target:orderdeps() to target:get('deps') to show only direct dependencies declared via add_deps(), not transitive ones - Print output now shows all fields: root targets, name, kind, group, default, and deps — matching the JSON structure - Add kind assertion to test
Diffstat (limited to 'tests')
-rw-r--r--tests/projects/plugins/show/depgraph/test.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/projects/plugins/show/depgraph/test.lua b/tests/projects/plugins/show/depgraph/test.lua
index 28ae7c188..229e715de 100644
--- a/tests/projects/plugins/show/depgraph/test.lua
+++ b/tests/projects/plugins/show/depgraph/test.lua
@@ -12,6 +12,7 @@ function test_depgraph_json(t)
entries[target.name] = target
end
t:are_equal(entries.core.deps, {})
+ t:are_equal(entries.core.kind, "static")
t:are_equal(entries.ui.deps, {"core"})
t:are_equal(entries.app.deps, {"core", "ui"})
t:are_equal(entries.app.kind, "binary")