···292292import-tree.leafs
293293```
294294295295+### `import-tree.new`
296296+297297+Returns a fresh import-tree with empty state. If you previously had any path, lib, filter, etc,
298298+you might need to set them on the new empty tree.
299299+295300### `import-tree.result`
296301297302Exactly the same as calling the import-tree object with an empty list `[ ]`.
+12
checkmate.nix
···113113 ];
114114 };
115115116116+ reset."test `new` returns a clear state" = {
117117+ expr = lib.pipe lit [
118118+ (i: i.addPath ./tree/x)
119119+ (i: i.addPath ./tree/a/b)
120120+ (i: i.new)
121121+ (i: i.addPath ./tree/modules/hello-world)
122122+ (i: i.withLib lib)
123123+ (i: i.leafs.result)
124124+ ];
125125+ expected = [ ./tree/modules/hello-world/mod.nix ];
126126+ };
127127+116128 addAPI."test extends the API available on an import-tree object" = {
117129 expr =
118130 let
+3
default.nix
···110110111111 # Applies empty (for already path-configured trees)
112112 result = (self f) [ ];
113113+114114+ # returns the original empty state
115115+ new = callable;
113116 };
114117 };
115118 in