load-notes-ignored
Tests loading a project: how files are read and which load errors are reported.
Our implementation passes this case when its check --json output for the input below equals the expected
output.
Input
nodes/a.md---
id: a
type: t
---nodes/README.md# Notes
Not a node.nodes/sub/b.md---
id: b
type: t
---nodes/sub/README.mdno frontmatterExpected output
0 ghosts · 0 load errors · 2 nodes · 0 results
expected.json{
"ghosts": [],
"load_errors": [],
"nodes": [
{
"body": "",
"fields": {},
"id": "a",
"links": [],
"parent": null,
"plane": null,
"title": "a",
"type": "t"
},
{
"body": "",
"fields": {},
"id": "b",
"links": [],
"parent": null,
"plane": null,
"title": "b",
"type": "t"
}
],
"results": [],
"structure": {
"errors": [],
"warnings": []
}
}