Tests / @ogygia/content
@ogygia/content
Version 0.14.0 latest
620ddcca 736 test runs (736 tests, each run in Node, the browsers or both)
0.86× lines of test for each line of source (10,124 to 11,724) Only real test code counts: test files and their helpers, not fixtures, sample apps or benches.
Blank lines are left out on both sides.
Exactly what is counted
non-blank lines of test code across the repo (*.test.ts, *.test-d.ts, *.spec.ts, and the .ts helpers in test/ and e2e/ folders; no fixtures, fixture apps, stubs or benches), over non-blank lines of packages/*/src (no .d.ts or generated files)92.6% of source lines run by the tests
- 677Unit
- 57Browser
- 2End to end
- 0Type tests
- 0Lint rules
- 0Failing
Coverage
- 92.6%Lines
- 81.0%Branches
- 86.3%Functions
- 90.3%Statements
Every test
736 tests
| Test | Kind | Node | Chromium | Firefox | WebKit |
|---|---|---|---|---|---|
packages/content/e2e/content-css.spec.ts | |||||
| browser: the body's scoped <style> is loaded and applied | End to end | not run | pass | pass | pass |
| SSR: the content body emits its own CSS as <link data-ogygia-region-css> (og-content.*.css) | End to end | not run | pass | pass | pass |
packages/content/test/blocks-render.test.ts | |||||
| Blocks > leaves out a block whose type is not in the registry, and keeps the rest | Unit | pass | not run | not run | not run |
| Blocks > renders an already-resolved `nodes` list the same, with no registry | Unit | pass | not run | not run | not run |
| Blocks > renders each block of a tree through its registry entry, children inside their parent | Unit | pass | not run | not run | not run |
| Blocks > takes `nodes` over `tree` when both are given | Unit | pass | not run | not run | not run |
| Blocks > takes a single node, and renders nothing for no tree | Unit | pass | not run | not run | not run |
packages/content/test/blocks-resolve.test.ts | |||||
| resolve_block_tree > accepts a single node or an array | Unit | pass | not run | not run | not run |
| resolve_block_tree > carries no registry into the resolved tree (only region values) | Unit | pass | not run | not run | not run |
| resolve_block_tree > recurses into children | Unit | pass | not run | not run | not run |
| resolve_block_tree > skips an unregistered type rather than throwing | Unit | pass | not run | not run | not run |
| resolve_block_tree > turns each node type into a region value | Unit | pass | not run | not run | not run |
packages/content/test/blog-dates.test.ts | |||||
| blog dates > shows the post's own day in the list and the post when the server is in America/Los_Angeles | Unit | pass | not run | not run | not run |
| blog dates > shows the post's own day in the list and the post when the server is in Pacific/Kiritimati | Unit | pass | not run | not run | not run |
| blog dates > shows the post's own day in the list and the post when the server is in UTC | Unit | pass | not run | not run | not run |
packages/content/test/blog-list-flat.test.ts | |||||
| BlogList flat order > keeps the given order when group is false | Unit | pass | not run | not run | not run |
| BlogList flat order > still lists newest first when grouped | Unit | pass | not run | not run | not run |
packages/content/test/blog-list.test.ts | |||||
| BlogList > draws a card with the date, title, summary, author and tags | Unit | pass | not run | not run | not run |
| BlogList > groups the posts under a heading per year by default | Unit | pass | not run | not run | not run |
| BlogList > lets the item snippet draw each post | Unit | pass | not run | not run | not run |
| BlogList > lists the posts newest first, equal dates in the order given | Unit | pass | not run | not run | not run |
packages/content/test/blog-post.test.ts | |||||
| BlogPost > falls back to the slug for the title | Unit | pass | not run | not run | not run |
| BlogPost > links back to the index only when given back | Unit | pass | not run | not run | not run |
| BlogPost > links the previous and next post, and has no pager without them | Unit | pass | not run | not run | not run |
| BlogPost > renders the footer snippet after the post | Unit | pass | not run | not run | not run |
| BlogPost > shows the dateline, title, summary and tags from the post data | Unit | pass | not run | not run | not run |
| BlogPost > writes the title, with the site title, and the post facts into the head | Unit | pass | not run | not run | not run |
packages/content/test/blog-shell.test.ts | |||||
| BlogShell > draws the brand snippet in place of the title | Unit | pass | not run | not run | not run |
| BlogShell > links the brand to the blog root taken from the page, or the base prop | Unit | pass | not run | not run | not run |
| BlogShell > puts the brand, links, theme toggle and actions in the header | Unit | pass | not run | not run | not run |
| BlogShell > renders the page in one main column, with no sidebar, without a site | Unit | pass | not run | not run | not run |
| BlogShell > shows the search only when asked | Unit | pass | not run | not run | not run |
packages/content/test/bottom-bar.test.ts | |||||
| BottomBar > holds lead in its lead slot and actions in its actions slot | Unit | pass | not run | not run | not run |
| BottomBar > is a nav labelled Site unless given a label | Unit | pass | not run | not run | not run |
packages/content/test/browser/code-chrome.test.ts | |||||
| a clipboard that refuses is no unhandled rejection, and shows no tick | Browser | not run | pass | pass | pass |
| a second copy within the tick keeps the tick for its full time | Browser | not run | pass | pass | pass |
packages/content/test/browser/on-this-page.test.ts | |||||
| OnThisPage > lets go of the window when it unmounts: a scroll after moves nothing | Browser | not run | pass | pass | pass |
| OnThisPage > links the title to the page's own path, the same as on the server | Browser | not run | pass | pass | pass |
| OnThisPage > marks the first heading on a short page where none crossed the fold line | Browser | not run | pass | pass | pass |
| OnThisPage > marks the last heading above the fold line, in its list and in the static outline | Browser | not run | pass | pass | pass |
| OnThisPage > marks the last heading at the very bottom of the page | Browser | not run | pass | pass | pass |
packages/content/test/browser/roving.test.ts | |||||
| roving > a horizontal surface moves with Left and Right, not Up and Down | Browser | not run | pass | pass | pass |
| roving > a key pressed while focus is not on an item is left alone | Browser | not run | pass | pass | pass |
| roving > arrows, Home and End move focus and the tab stop; the ends wrap unless loop is off | Browser | not run | pass | pass | pass |
| roving > Enter is not handled: activating an item stays native | Browser | not run | pass | pass | pass |
| roving > the current item is the one tab stop, else the first | Browser | not run | pass | pass | pass |
packages/content/test/browser/search-palette.test.ts | |||||
| a search query that fails (#273) > shows the error, drops the old results, and leaves no unhandled rejection#273 | Browser | not run | pass | pass | pass |
| the search palette > does not query a term typed just before the field goes away | Browser | not run | pass | pass | pass |
| the search palette > does not show the failure of a term the visitor already typed past | Browser | not run | pass | pass | pass |
| the search palette > keeps one disabled option in the listbox when there is nothing to show | Browser | not run | pass | pass | pass |
| the search palette > queries once for the last term typed in a quick burst | Browser | not run | pass | pass | pass |
| the search palette > shows the search as unavailable when its index does not load | Browser | not run | pass | pass | pass |
| the search palette > starts its worker client when it mounts, with its base and limit, and stops it on unmount | Browser | not run | pass | pass | pass |
| the search palette > starts no worker client for a custom query backend | Browser | not run | pass | pass | pass |
packages/content/test/browser/search.test.ts | |||||
| a kept search > follows a new base: its link goes to the new base’s search page | Browser | not run | pass | pass | pass |
| Search > in a sheet, mounts the palette at once and leaves the keys to the page | Browser | not run | pass | pass | pass |
| Search > leaves a slash typed in a text field or an editor alone | Browser | not run | pass | pass | pass |
| Search > opens the palette on Ctrl+K | Browser | not run | pass | pass | pass |
| Search > renders a real link to the search page, and loads no palette before an intent | Browser | not run | pass | pass | pass |
packages/content/test/browser/sheet.test.ts | |||||
| Sheet > opens as a dialog labelled Menu with the children and the footer | Browser | not run | pass | pass | pass |
| Sheet > stays open on a press of the sheet toggle outside it, and closes on any other | Browser | not run | pass | pass | pass |
| Sheet > takes its label from label | Browser | not run | pass | pass | pass |
packages/content/test/browser/shell-bar.test.ts | |||||
| a link picked in the mobile sheet > closes the sheet on a plain click | Browser | not run | pass | pass | pass |
| a link picked in the mobile sheet > keeps it open on a modifier or middle click, a new-tab or download link, or a prevented click | Browser | not run | pass | pass | pass |
| the mobile bar switches its sheet between views > holds the height through a glide, then lets go when it ends | Browser | not run | pass | pass | pass |
| the mobile bar switches its sheet between views > lets go of a switch in flight when it unmounts | Browser | not run | pass | pass | pass |
| the mobile bar switches its sheet between views > lets go of the pinned height when no glide runs | Browser | not run | pass | pass | pass |
| the mobile bar switches its sheet between views > swaps at once under reduced motion: no height is pinned | Browser | not run | pass | pass | pass |
| the mobile bar switches its sheet between views > switches between the nav and search views without closing the sheet | Browser | not run | pass | pass | pass |
packages/content/test/browser/sidebar.test.ts | |||||
| the sidebar draws the nav tree > draws each leaf with the item snippet when one is given | Browser | not run | pass | pass | pass |
| the sidebar draws the nav tree > gives every row its own view-transition name, a valid identifier | Browser | not run | pass | pass | pass |
| the sidebar draws the nav tree > nests a group, links a leaf, and passes a plain link through | Browser | not run | pass | pass | pass |
| the sidebar keeps its scroll position > a kept sidebar given a new base saves under the new base | Browser | not run | pass | pass | pass |
| the sidebar keeps its scroll position > lets go of the panel when it unmounts: scrolling the panel after saves nothing | Browser | not run | pass | pass | pass |
| the sidebar keeps its scroll position > saves the position while it is mounted | Browser | not run | pass | pass | pass |
| the sidebar shows the active row > centers the active row in the panel when it starts out of view | Browser | not run | pass | pass | pass |
| the sidebar shows the active row > moves only the panel, never the page | Browser | not run | pass | pass | pass |
packages/content/test/browser/switcher.test.ts | |||||
| Switcher > lists the options as one radio choice, the current one checked | Browser | not run | pass | pass | pass |
| Switcher > navigates to the chosen option | Browser | not run | pass | pass | pass |
| Switcher > shows one menu per axis, with its current value | Browser | not run | pass | pass | pass |
| Switcher > shows only the axes asked for | Browser | not run | pass | pass | pass |
packages/content/test/browser/tab-group-island.test.ts | |||||
| TabGroupIsland > a choice in one block moves every block of the same group, and is saved | Browser | not run | pass | pass | pass |
| TabGroupIsland > builds the bar from the panels' own labels, above the panels | Browser | not run | pass | pass | pass |
| TabGroupIsland > keeps the same bar and marker across a selection | Browser | not run | pass | pass | pass |
| TabGroupIsland > moves focus with the arrows without selecting; a click selects | Browser | not run | pass | pass | pass |
| TabGroupIsland > starts on the choice saved by an earlier page | Browser | not run | pass | pass | pass |
packages/content/test/browser/theme-toggle.test.ts | |||||
| ThemeToggle > cycles system, light, dark, system and keeps the choice in localStorage | Browser | not run | pass | pass | pass |
| ThemeToggle > flips at once, with no View Transition, under reduced motion | Browser | not run | pass | pass | pass |
| ThemeToggle > flips inside a View Transition and marks the root until it ends | Browser | not run | pass | pass | pass |
| ThemeToggle > keeps the choice under its own key | Browser | not run | pass | pass | pass |
| ThemeToggle > still flips the theme when storage refuses | Browser | not run | pass | pass | pass |
packages/content/test/code.test.ts | |||||
| fence meta parsers > infostring() reads chrome meta (title→file, quoted, bare, booleans); ignores line ranges | Unit | pass | not run | not run | not run |
| fence meta parsers > parsers LAYER (later wins on collision) | Unit | pass | not run | not run | not run |
| fence meta parsers > slash_meta() reads /// file:/copy:/link: and STRIPS them from source | Unit | pass | not run | not run | not run |
| run_variants — race > no generator claims → null | Unit | pass | not run | not run | not run |
| run_variants — race > the FIRST generator to return non-null claims the fence | Unit | pass | not run | not run | not run |
packages/content/test/config-surface.test.ts | |||||
| content presets — config-time validation > publishes valid presets to the bridge | Unit | pass | not run | not run | not run |
| content presets — config-time validation > rejects an empty preset and non-identifier names | Unit | pass | not run | not run | not run |
| content presets — config-time validation > rejects non-content vocabulary in a preset | Unit | pass | not run | not run | not run |
| content presets — config-time validation > requires the markdown base | Unit | pass | not run | not run | not run |
| loader macro preset door > a `preset` key nested in some other object is not the loader’s own | Unit | pass | not run | not run | not run |
| loader macro preset door > a presetless call emits no query (bare module — shared with every other presetless glob) | Unit | pass | not run | not run | not run |
| loader macro preset door > keeps sibling options intact while stripping preset | Unit | pass | not run | not run | not run |
| loader macro preset door > mints the module-variant query and strips preset from runtime options | Unit | pass | not run | not run | not run |
| loader macro preset door > non-literal preset is a build error (the macro-argument law) | Unit | pass | not run | not run | not run |
| loader macro preset door > unknown preset name errors listing the configured names | Unit | pass | not run | not run | not run |
packages/content/test/constructs-stress.test.ts | |||||
| .svelte multi-script-block interactions > a <script module> wire class AND a <script> code() call both rewrite, blocks independent | Unit | pass | not run | not run | not run |
| .svelte multi-script-block interactions > a DECOY string that looks like a call in another block is not rewritten | Unit | pass | not run | not run | not run |
| .svelte multi-script-block interactions > markup PROSE mimicking a call stays literal | Unit | pass | not run | not run | not run |
| code/md — byte-offset integrity under multi-byte unicode > code + md interleaved on ONE line both rewrite, offsets independent | Unit | pass | not run | not run | not run |
| code/md — byte-offset integrity under multi-byte unicode > code() with emoji prose before it splices correctly | Unit | pass | not run | not run | not run |
| code/md — demented shapes that must WORK > deeply nested template with many ${}-looking but escaped sequences | Unit | pass | not run | not run | not run |
| code/md — demented shapes that must WORK > empty source string | Unit | pass | not run | not run | not run |
| code/md — demented shapes that must WORK > md source containing a </script> sequence in a .ts host (valid there) | Unit | pass | not run | not run | not run |
| code/md — demented shapes that must WORK > the code source contains backticks-as-content via escaping | Unit | pass | not run | not run | not run |
| code/md — demented shapes that must WORK > the source contains the marker text as a string literal in the code | Unit | pass | not run | not run | not run |
| code/md — demented shapes that must WORK > the whole family markers appearing together, only code/md rewrite here | Unit | pass | not run | not run | not run |
| code/md — must FAIL LOUDLY > code with a computed/non-literal lang | Unit | pass | not run | not run | not run |
| code/md — must FAIL LOUDLY > code with zero args | Unit | pass | not run | not run | not run |
| code/md — must FAIL LOUDLY > interpolated code source | Unit | pass | not run | not run | not run |
| code/md — must FAIL LOUDLY > interpolated md source | Unit | pass | not run | not run | not run |
| misuse-error QUALITY — build-voice, file:line, explains the fix > code with an identifier source → static string literal + line | Unit | pass | not run | not run | not run |
| misuse-error QUALITY — build-voice, file:line, explains the fix > loader with a concatenation first arg → static string literal | Unit | pass | not run | not run | not run |
| misuse-error QUALITY — build-voice, file:line, explains the fix > loader with an identifier first arg → static string literal | Unit | pass | not run | not run | not run |
| misuse-error QUALITY — build-voice, file:line, explains the fix > md with wrong arity → takes exactly one argument | Unit | pass | not run | not run | not run |
| misuse-error QUALITY — build-voice, file:line, explains the fix > regions with a non-literal glob → static string literal | Unit | pass | not run | not run | not run |
| misuse-error QUALITY — build-voice, file:line, explains the fix > unknown loader method → lists the valid loaders | Unit | pass | not run | not run | not run |
| regions — demented shapes > a glob matching NOTHING yields an empty registry, not a crash | Unit | pass | not run | not run | not run |
| regions — demented shapes > filenames with spaces and special chars become string-keyed, importable specifiers | Unit | pass | not run | not run | not run |
packages/content/test/containers.test.ts | |||||
| a container > `details` is a collapsible <details> with a <summary> title | Unit | pass | not run | not run | not run |
| a container > inside fenced code is left as it is, whichever fence holds it | Unit | pass | not run | not run | not run |
| a container > nested containers close in order; an open one the author never closed is closed at the end | Unit | pass | not run | not run | not run |
| a container > of an alias kind is styled as the kind it folds onto, under its own label | Unit | pass | not run | not run | not run |
| a container > written tight (no blank lines) still gets blank lines around its body, so Markdown renders inside | Unit | pass | not run | not run | not run |
| a container title > holding { } stays text: Svelte never reads it as an expression (#469)#469 | Unit | pass | not run | not run | not run |
| a container title > holding markup characters stays text | Unit | pass | not run | not run | not run |
| a container title > with none falls back to the kind’s label | Unit | pass | not run | not run | not run |
packages/content/test/content-config-order.test.ts | |||||
| content() and the svelte config > content() first, then the svelte config: markdown is on | Unit | pass | not run | not run | not run |
| content() and the svelte config > markdown on, after the svelte config read its extensions: content() says so by code | Unit | pass | not run | not run | not run |
| content() and the svelte config > no markdown: an early read is right, and content() lets it be | Unit | pass | not run | not run | not run |
| content() and the svelte config > the same for the preprocessor | Unit | pass | not run | not run | not run |
packages/content/test/content-leaks.test.ts | |||||
| the content-leak guardrail, in the content plugin > a compiled document in a client chunk is reported with its path, its CSS face is not | Unit | pass | not run | not run | not run |
| the content-leak guardrail, in the content plugin > the server leg, a dev server and a clean client bundle say nothing | Unit | pass | not run | not run | not run |
packages/content/test/content.test.ts | |||||
| content graph — relations + backlinks > a collection with no relations still receives backlinks from others | Unit | pass | not run | not run | not run |
| content graph — relations + backlinks > a contributor replaced by a dev reload (same size, same stamps) gives its own backlinks, not the old one’s | Unit | pass | not run | not run | not run |
| content graph — relations + backlinks > a missing single ref is null | Unit | pass | not run | not run | not run |
| content graph — relations + backlinks > inverts backlinks across collections | Unit | pass | not run | not run | not run |
| content graph — relations + backlinks > resolves a single-string relation to one RefEntry | Unit | pass | not run | not run | not run |
| content graph — relations + backlinks > resolves an array relation to RefEntry[] | Unit | pass | not run | not run | not run |
| content() catalog > collection-level filter hides entries from every read path | Unit | pass | not run | not run | not run |
| content() catalog > entries / entry from markdown(glob) | Unit | pass | not run | not run | not run |
| content() catalog > get() on a data-only entry has no body | Unit | pass | not run | not run | not run |
| content() catalog > get() returns id/data/meta + inline-partial body | Unit | pass | not run | not run | not run |
| content() catalog > get() returns null on a filtered-out / unknown id | Unit | pass | not run | not run | not run |
| content() catalog > list mints a prerender remote (static source) | Unit | pass | not run | not run | not run |
| content() catalog > per-remote filter narrows the collection filter (AND), never widens it | Unit | pass | not run | not run | not run |
| content() catalog > rejects a bare glob map (from must be a source) | Unit | pass | not run | not run | not run |
| enrich() source middleware > merges derived meta into refs() and get(), keeps existing meta | Unit | pass | not run | not run | not run |
| enrich() source middleware > threads groups() through | Unit | pass | not run | not run | not run |
| format source-builders > a glob key whose id climbs out, or repeats another, is refused as the source is made | Unit | pass | not run | not run | not run |
| format source-builders > a module of the wrong shape is refused with the code that names it | Unit | pass | not run | not run | not run |
| format source-builders > a schema whose parse throws fails with its words; one with no parse at all is unsupported | Unit | pass | not run | not run | not run |
| format source-builders > json: unwraps default, data-only (no body) | Unit | pass | not run | not run | not run |
| format source-builders > markdown: data + inline-partial body + headings in meta | Unit | pass | not run | not run | not run |
| format source-builders > markdown: surfaces the compiler-injected __ogygia_source as a LAZY entry.source | Unit | pass | not run | not run | not run |
| frontmatter > parses yaml and strips body | Unit | pass | not run | not run | not run |
| frontmatter > rejects broken yaml as invalid frontmatter, naming what the parser stopped at | Unit | pass | not run | not run | not run |
| glob() source ids > honors a custom id mapper | Unit | pass | not run | not run | not run |
| glob() source ids > strips shared prefix + extension generically (no hardcoded format list) | Unit | pass | not run | not run | not run |
| live source + live remotes > live.get projects one id from the seeded snapshot | Unit | pass | not run | not run | not run |
| live source + live remotes > live.list mints query_live and projects the seeded snapshot | Unit | pass | not run | not run | not run |
| vite content plugin > exposes invalidateModuleTree | Unit | pass | not run | not run | not run |
| vite content plugin > handles importer cycles | Unit | pass | not run | not run | not run |
| vite content plugin > plugin has no content.config transform | Unit | pass | not run | not run | not run |
packages/content/test/convention-dated.test.ts | |||||
| date_of > reads a valid date prefix | Unit | pass | not run | not run | not run |
| date_of > rejects undated and impossible-date segments | Unit | pass | not run | not run | not run |
| dated() > honors ordered:false opt-out | Unit | pass | not run | not run | not run |
| dated() > same-day posts share an order (ties break alphabetically downstream) | Unit | pass | not run | not run | not run |
| dated() > strips the date from the slug and orders chronologically | Unit | pass | not run | not run | not run |
| dated() > undated segments pass through unordered | Unit | pass | not run | not run | not run |
| dated() > verify flags only impossible date-looking prefixes | Unit | pass | not run | not run | not run |
| dated({ format }) > DD-MM-YYYY european format | Unit | pass | not run | not run | not run |
| dated({ format }) > dotted separators are literal | Unit | pass | not run | not run | not run |
| dated({ format }) > throws on a format missing a token | Unit | pass | not run | not run | not run |
| dated({ format }) > YYYYMMDD compact format | Unit | pass | not run | not run | not run |
packages/content/test/convention.test.ts | |||||
| folder() convention > `ordered: false` in a directory +meta.json exempts it | Unit | pass | not run | not run | not run |
| folder() convention > a +meta.json label overrides the title-cased default | Unit | pass | not run | not run | not run |
| folder() convention > a clean corpus builds, ordered by NN-, ids/groups derived | Unit | pass | not run | not run | not run |
| folder() convention > a whole custom convention reshapes structure (dot-ordering instead of dashes) | Unit | pass | not run | not run | not run |
| folder() convention > duplicate numbers in a directory fail the read, named | Unit | pass | not run | not run | not run |
| numbered().verify > a +meta.json `ordered: false` exempts the directory | Unit | pass | not run | not run | not run |
| numbered().verify > a directory with no prefixes is simply unordered — no issues | Unit | pass | not run | not run | not run |
| numbered().verify > clean numbering passes | Unit | pass | not run | not run | not run |
| numbered().verify > duplicate numbers are an error | Unit | pass | not run | not run | not run |
| numbered().verify > gaps pass by default, fail with contiguous | Unit | pass | not run | not run | not run |
| numbered().verify > inconsistent padding is an error (1- next to 01-) | Unit | pass | not run | not run | not run |
| numbered().verify > mixed prefixed and unprefixed siblings is an error | Unit | pass | not run | not run | not run |
| numbered().verify > pad option enforces an exact width | Unit | pass | not run | not run | not run |
packages/content/test/dev-close.test.ts | |||||
| the content plugin in dev, when its server closes > a restart ends the old run only: the new server still reloads on an edit | Unit | pass | not run | not run | not run |
| the content plugin in dev, when its server closes > lets go of a reload it was still waiting to send | Unit | pass | not run | not run | not run |
| the content plugin in dev, when its server closes > still reloads on an edit while the server runs | Unit | pass | not run | not run | not run |
packages/content/test/dev-reload.test.ts | |||||
| edits in dev (#247), modules loaded by ssrLoadModule > a collection in a module the edit did not run again keeps its connection and its place#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > a collection the module keeps across its runs still answers and follows after an edit#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > a live list open across an edit gets the new values or ends, never hangs#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > a module invalidated again while it runs: the run after it replaces what it built#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > an app in a folder whose name has a space: the same#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > two edits of the collections module itself: the same#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > two modules of the same name, each with a collection of the same name: an edit replaces only its own#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > two page edits leave one live connection and one collection in the graph#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > a collection in a module the edit did not run again keeps its connection and its place#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > a collection the module keeps across its runs still answers and follows after an edit#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > a live list open across an edit gets the new values or ends, never hangs#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > a module invalidated again while it runs: the run after it replaces what it built#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > an app in a folder whose name has a space: the same#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > two edits of the collections module itself: the same#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > two modules of the same name, each with a collection of the same name: an edit replaces only its own#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > two page edits leave one live connection and one collection in the graph#247 | Unit | pass | not run | not run | not run |
| edits in dev under Bun (#247) > two page edits leave one live connection, however Kit loads the module#247 | Unit | skip | not run | not run | not run |
packages/content/test/diff-markers.test.ts | |||||
| diff_markers > a bare marker marks an added/removed EMPTY line | Unit | pass | not run | not run | not run |
| diff_markers > is inert on a fence with no markers | Unit | pass | not run | not run | not run |
| diff_markers > leaves marker-like code alone: no space, no dialect | Unit | pass | not run | not run | not run |
| diff_markers > skips languages where a leading --- is real syntax (yaml) | Unit | pass | not run | not run | not run |
| diff_markers > strips the markers and classes the lines | Unit | pass | not run | not run | not run |
packages/content/test/dimensions.test.ts | |||||
| dimensions — addresses union (prerender the whole matrix) > includes fallback URLs and excludes non-fallback misses | Unit | pass | not run | not run | not run |
| dimensions — coordinate encoding > default coordinate is bare; non-defaults get ordered segments | Unit | pass | not run | not run | not run |
| dimensions — coordinate encoding > is_dimensioned narrows | Unit | pass | not run | not run | not run |
| dimensions — fallback (render, never 404) > an axis without fallback 404s (version has no fallback) | Unit | pass | not run | not run | not run |
| dimensions — fallback (render, never 404) > doc carries the coordinate | Unit | pass | not run | not run | not run |
| dimensions — fallback (render, never 404) > native page has fallback null | Unit | pass | not run | not run | not run |
| dimensions — fallback (render, never 404) > untranslated page serves default-locale content with a fallback flag | Unit | pass | not run | not run | not run |
| dimensions — nav reflects the coordinate > nav hrefs carry the coordinate prefix | Unit | pass | not run | not run | not run |
| dimensions — nav reflects the coordinate > nav(slug) shows that coordinate’s tree | Unit | pass | not run | not run | not run |
| dimensions — neighbors are coordinate-prefixed > next stays in the same coordinate | Unit | pass | not run | not run | not run |
| dimensions — relations, aliases and failures > a default value written in the URL is not peeled as a coordinate | Unit | pass | not run | not run | not run |
| dimensions — relations, aliases and failures > a resolve that throws at once is not kept: the next page builds | Unit | pass | not run | not run | not run |
| dimensions — relations, aliases and failures > an entry's slug carries the prefix of the coordinate that places it | Unit | pass | not run | not run | not run |
| dimensions — resolve serves the right coordinate > picks content per coordinate | Unit | pass | not run | not run | not run |
| dimensions — resolve serves the right coordinate > re-prefixes the slug/href to the full address | Unit | pass | not run | not run | not run |
| dimensions — search > indexes the default coordinate only: a fallback page is never a second hit | Unit | pass | not run | not run | not run |
| dimensions — site load/entries integration (the real mount) > entries prerenders the coordinate-prefixed union (incl. fallback URLs) | Unit | pass | not run | not run | not run |
| dimensions — site load/entries integration (the real mount) > load resolves a valid coordinate slug and 404s an unknown one | Unit | pass | not run | not run | not run |
| dimensions — switcher never dead-ends > a value where the page is missing points at that coordinate's home page, flagged missing | Unit | pass | not run | not run | not run |
| dimensions — switcher never dead-ends > offers every axis value with a resolvable href | Unit | pass | not run | not run | not run |
| dimensions — switcher never dead-ends > plain (non-dimensioned) site returns null switcher | Unit | pass | not run | not run | not run |
packages/content/test/doc-keep-reading.test.ts | |||||
| Doc keepReading > shows no keep reading block when keepReading is empty | Unit | pass | not run | not run | not run |
| Doc keepReading > shows no keep reading block when suggested is off | Unit | pass | not run | not run | not run |
| Doc keepReading > shows the keepReading refs instead of the trail suggested refs when set | Unit | pass | not run | not run | not run |
| Doc keepReading > shows the trail suggested refs when keepReading is not set | Unit | pass | not run | not run | not run |
packages/content/test/doc.test.ts | |||||
| Doc > leaves the breadcrumb trail out unless asked for | Unit | pass | not run | not run | not run |
| Doc > titles the document "Page — Site" when the shell names a site, else the page alone | Unit | pass | not run | not run | not run |
packages/content/test/docs-shell.test.ts | |||||
| DocsShell regions > drops the header when the prop is passed as undefined, as it does for null | Unit | pass | not run | not run | not run |
| DocsShell regions > renders the built-in header when the prop is absent | Unit | pass | not run | not run | not run |
| DocsShell styling is opt-in > imports no stylesheet and carries no styles of its own | Unit | pass | not run | not run | not run |
packages/content/test/fence-cache.test.ts | |||||
| fence cache > a disabled cache (dir null) is silent | Unit | pass | not run | not run | not run |
| fence cache > keys are stable and input-sensitive | Unit | pass | not run | not run | not run |
| fence cache > set/get round-trip; miss → null | Unit | pass | not run | not run | not run |
packages/content/test/fence-escaping.test.ts | |||||
| a fence that tries to break out of an attribute > a `$` pattern in the language or id is placed as written, never expanded | Unit | pass | not run | not run | not run |
| a fence that tries to break out of an attribute > a file name's markup characters are escaped in data-file, as in any attribute | Unit | pass | not run | not run | not run |
| a fence that tries to break out of an attribute > a language with a quote and markup stays inside data-lang | Unit | pass | not run | not run | not run |
| a fence that tries to break out of an attribute > a permalink id with a quote and markup stays inside id | Unit | pass | not run | not run | not run |
| a fence that tries to break out of an attribute > any language, id and file name stay inside their attributes and read back as themselves | Unit | pass | not run | not run | not run |
packages/content/test/fields.test.ts | |||||
| fields.page > a page with no title is an issue, not a throw | Unit | pass | not run | not run | not run |
| fields.page > keeps the page fields, fills their defaults, and drops anything else | Unit | pass | not run | not run | not run |
packages/content/test/frame-nav.test.ts | |||||
| Frame nav tree > asks the site for the nav tree once for the default sidebar | Unit | pass | not run | not run | not run |
| Frame nav tree > does not ask the site for the nav tree when the sidebar is removed | Unit | pass | not run | not run | not run |
| Frame nav tree > does not ask the site for the nav tree when the sidebar is replaced | Unit | pass | not run | not run | not run |
packages/content/test/frame.test.ts | |||||
| Frame > has no header or footer unless given one | Unit | pass | not run | not run | not run |
| Frame > renders the site nav tree in the default sidebar | Unit | pass | not run | not run | not run |
| Frame > replaces the sidebar with a component, and removes it for false or null | Unit | pass | not run | not run | not run |
| Frame > sets the shell context: the site, and the mount base taken from the page | Unit | pass | not run | not run | not run |
| Frame > starts with a skip link to the main landmark | Unit | pass | not run | not run | not run |
| Frame > uses the base prop over the one taken from the page | Unit | pass | not run | not run | not run |
packages/content/test/frontmatter-errors.test.ts | |||||
| invalid frontmatter is reported once > a block the parser itself calls invalid is said once, not wrapped in a second invalid-frontmatter error | Unit | pass | not run | not run | not run |
| invalid frontmatter is reported once > a tab indent: content_frontmatter_invalid with one [ogygia] prefix and one link, naming what the parser stopped at | Unit | pass | not run | not run | not run |
| invalid frontmatter is reported once > an empty key: content_frontmatter_invalid with one [ogygia] prefix and one link, naming what the parser stopped at | Unit | pass | not run | not run | not run |
packages/content/test/frontmatter-flow.test.ts | |||||
| flow sequences > a bracket or brace inside a plain item is the frontmatter error, as YAML rejects it (#620)#620 | Unit | pass | not run | not run | not run |
| flow sequences > a bracketed phrase is a one-item list, as YAML reads it; quoted, it stays a string | Unit | pass | not run | not run | not run |
| flow sequences > a nested list as its own item parses, as YAML reads it | Unit | pass | not run | not run | not run |
| flow sequences > a value that only starts with a bracketed part (a markdown link) stays text | Unit | pass | not run | not run | not run |
| flow sequences > one quoted item, one nested list, and many items | Unit | pass | not run | not run | not run |
| flow sequences > several bracket groups in a row (a reference link) stay text, not the first group as a list | Unit | pass | not run | not run | not run |
| flow sequences > tags: [svelte] is a one-item list | Unit | pass | not run | not run | not run |
packages/content/test/frontmatter.test.ts | |||||
| parse_yaml — a `__proto__` key is a plain key > block map: it is the object's own key, never its prototype | Unit | pass | not run | not run | not run |
| parse_yaml — a `__proto__` key is a plain key > flow map: it is the object's own key, never its prototype | Unit | pass | not run | not run | not run |
| parse_yaml — a `__proto__` key is a plain key > quoted key: it is the object's own key, never its prototype | Unit | pass | not run | not run | not run |
| parse_yaml — adversarial mixes > a colon inside a double-quoted value does not split the key | Unit | pass | not run | not run | not run |
| parse_yaml — adversarial mixes > blank lines between entries are ignored | Unit | pass | not run | not run | not run |
| parse_yaml — adversarial mixes > CRLF line endings are handled | Unit | pass | not run | not run | not run |
| parse_yaml — adversarial mixes > maps and sequences deeply mixed | Unit | pass | not run | not run | not run |
| parse_yaml — adversarial mixes > tabs used for indentation are rejected | Unit | pass | not run | not run | not run |
| parse_yaml — adversarial mixes > top-level plain scalar | Unit | pass | not run | not run | not run |
| parse_yaml — adversarial mixes > trailing whitespace on lines is tolerated | Unit | pass | not run | not run | not run |
| parse_yaml — block scalars > block scalar followed by another key | Unit | pass | not run | not run | not run |
| parse_yaml — block scalars > folded > joins lines with spaces | Unit | pass | not run | not run | not run |
| parse_yaml — block scalars > folded blank line becomes a paragraph break | Unit | pass | not run | not run | not run |
| parse_yaml — block scalars > literal | keeps newlines | Unit | pass | not run | not run | not run |
| parse_yaml — block scalars > literal strip |- has no trailing newline | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > empty sequence item → null | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > nested sequences (- - x) | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > sequence at the SAME indent as its key | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > sequence of maps | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > simple scalar sequence | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > top-level sequence | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > typed items in a sequence | Unit | pass | not run | not run | not run |
| parse_yaml — comments > # inside a double-quoted value is NOT a comment | Unit | pass | not run | not run | not run |
| parse_yaml — comments > a#b (no leading space) stays a plain scalar | Unit | pass | not run | not run | not run |
| parse_yaml — comments > trailing # comment stripped | Unit | pass | not run | not run | not run |
| parse_yaml — comments > value that is only a comment → null | Unit | pass | not run | not run | not run |
| parse_yaml — dates stay strings > ISO date is NOT converted to a Date | Unit | pass | not run | not run | not run |
| parse_yaml — dates stay strings > ISO datetime stays a string | Unit | pass | not run | not run | not run |
| parse_yaml — empty & trivial > comment-only → {} | Unit | pass | not run | not run | not run |
| parse_yaml — empty & trivial > empty string → {} | Unit | pass | not run | not run | not run |
| parse_yaml — empty & trivial > whitespace-only → {} (not null) | Unit | pass | not run | not run | not run |
| parse_yaml — flat mappings & scalar types > booleans are ONLY true/false | Unit | pass | not run | not run | not run |
| parse_yaml — flat mappings & scalar types > integers, negatives, plus, exponents, floats | Unit | pass | not run | not run | not run |
| parse_yaml — flat mappings & scalar types > multiple keys in one block | Unit | pass | not run | not run | not run |
| parse_yaml — flat mappings & scalar types > Norway problem: yes/no/on/off/y/n stay STRINGS | Unit | pass | not run | not run | not run |
| parse_yaml — flat mappings & scalar types > null spellings: null, ~, and empty value | Unit | pass | not run | not run | not run |
| parse_yaml — flat mappings & scalar types > plain string values | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > a brace-wrapped token with no top-level colon is a STRING, not a mapping | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > empty flow collections | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > flow mapping | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > flow sequence | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > flow sequence with typed values | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > nested flow collections | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > quoted string inside flow keeps commas/colons | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > top-level flow | Unit | pass | not run | not run | not run |
| parse_yaml — nested block mappings > three-level nesting | Unit | pass | not run | not run | not run |
| parse_yaml — nested block mappings > two-level nesting | Unit | pass | not run | not run | not run |
| parse_yaml — quoting > double-quoted escapes: \n \t \" \\ \r \0 \uXXXX | Unit | pass | not run | not run | not run |
| parse_yaml — quoting > numbers-that-look-like-versions stay strings if quoted | Unit | pass | not run | not run | not run |
| parse_yaml — quoting > quoted KEYS (single and double), including a colon in the key | Unit | pass | not run | not run | not run |
| parse_yaml — quoting > quoted values containing : and [ | Unit | pass | not run | not run | not run |
| parse_yaml — quoting > single-quoted is literal; `''` escapes a quote | Unit | pass | not run | not run | not run |
| parse_yaml — the rest of the supported subset > # inside a single-quoted value or a flow collection is NOT a comment | Unit | pass | not run | not run | not run |
| parse_yaml — the rest of the supported subset > a byte order mark before the first line is dropped | Unit | pass | not run | not run | not run |
| parse_yaml — the rest of the supported subset > a colon inside a single-quoted key does not split it | Unit | pass | not run | not run | not run |
| parse_yaml — the rest of the supported subset > a second document after an inner --- is not read | Unit | pass | not run | not run | not run |
| parse_yaml — the rest of the supported subset > an empty key is rejected with its line | Unit | pass | not run | not run | not run |
| parse_yaml — the rest of the supported subset > an explicit indent indicator (|1) keeps the spaces past it | Unit | pass | not run | not run | not run |
| parse_yaml — the rest of the supported subset > anchors, aliases, tags and merge keys stay plain text | Unit | pass | not run | not run | not run |
| parse_yaml — the rest of the supported subset > chomping: |+ keeps the trailing blank lines, >- strips the last newline | Unit | pass | not run | not run | not run |
| parse_yaml — the rest of the supported subset > double-quoted escapes: \r \0 \b \f \/ | Unit | pass | not run | not run | not run |
| parse_yaml — the rest of the supported subset > nests at any consistent indent width (four spaces) | Unit | pass | not run | not run | not run |
| parse_yaml — the rest of the supported subset > only a top-level : makes a flow mapping (a nested one stays text) | Unit | pass | not run | not run | not run |
| parse_yaml — the rest of the supported subset > typed plain scalars: .inf, .nan, hex 0x, octal 0o, null casings | Unit | pass | not run | not run | not run |
| parseFrontmatter > a byte order mark before the fence is dropped | Unit | pass | not run | not run | not run |
| parseFrontmatter > a parse failure is reported as invalid frontmatter, with the reason | Unit | pass | not run | not run | not run |
| parseFrontmatter > frontmatter that is a list or a scalar gives no data | Unit | pass | not run | not run | not run |
| parseFrontmatter > no closing fence: no data, the whole text is the body | Unit | pass | not run | not run | not run |
| parseFrontmatter > no opening fence: no data, the whole text is the body | Unit | pass | not run | not run | not run |
| the markdown preprocessor reads frontmatter with parse_yaml, not js-yaml > frontmatter that is a list gives no fields | Unit | pass | not run | not run | not run |
| the markdown preprocessor reads frontmatter with parse_yaml, not js-yaml > no stays a string and {@const} stays the title | Unit | pass | not run | not run | not run |
packages/content/test/git-checkout.test.ts | |||||
| git loaders on one repo > a loader on another ref checks that ref out | Unit | pass | not run | not run | not run |
| git loaders on one repo > two loaders with different folders each find their own files | Unit | pass | not run | not run | not run |
packages/content/test/inline-markers.test.ts | |||||
| inline_markers > a --- alone on its line is never a marker (frontmatter / hr shown in a fence) | Unit | pass | not run | not run | not run |
| inline_markers > a multi-line highlight closes and reopens per line (spans cannot cross lines) | Unit | pass | not run | not run | not run |
| inline_markers > an unpaired marker is left as-is | Unit | pass | not run | not run | not run |
| inline_markers > custom classes replace the defaults (the svelte.dev skin) | Unit | pass | not run | not run | not run |
| inline_markers > removed content is text: markup in it is escaped, never live HTML (#396)#396 | Unit | pass | not run | not run | not run |
| inline_markers > removed content keeps a $ pattern as written (#396)#396 | Unit | pass | not run | not run | not run |
| inline_markers > skips markdown-family fences — a docs page showing the syntax renders it literally | Unit | pass | not run | not run | not run |
| inline_markers > wraps a removed span and keeps its content visible | Unit | pass | not run | not run | not run |
| inline_markers > wraps an added span, strips the delimiters | Unit | pass | not run | not run | not run |
packages/content/test/island-ownership.test.ts | |||||
| island-transform ownership > the markup hook does NOT island-transform a .svelte (no bridge call, no phantom) | Unit | pass | not run | not run | not run |
| island-transform ownership > the markup hook still island-transforms CONTENT files through the bridge | Unit | pass | not run | not run | not run |
packages/content/test/lifecycle.test.ts | |||||
| a change made while the first value is built is not missed (#191) > live.get: the same#191 | Unit | pass | not run | not run | not run |
| a change made while the first value is built is not missed (#191) > live.list: a change between the first value and the next pull is yielded#191 | Unit | pass | not run | not run | not run |
| a change made while the first value is built is not missed (#191) > the live connection is open before the first full read: a change during it is seen#191 | Unit | pass | not run | not run | not run |
| a collection a newer run of its module replaces stops following (#247) > a collection the same run builds replaces nothing#247 | Unit | pass | not run | not run | not run |
| a collection a newer run of its module replaces stops following (#247) > a live list streaming it ends once it was replaced, and so does a live get#247 | Unit | pass | not run | not run | not run |
| a collection a newer run of its module replaces stops following (#247) > its live connection: a change after it was replaced is not read#247 | Unit | pass | not run | not run | not run |
| a collection a newer run of its module replaces stops following (#247) > its retry: a dropped connection is not opened again once it was replaced#247 | Unit | pass | not run | not run | not run |
| a collection a newer run of its module replaces stops following (#247) > one an ended run builds later (a lazy content() call) is out of the graph until read#247 | Unit | pass | not run | not run | not run |
| a collection a newer run of its module replaces stops following (#247) > the module kept it: read again, it follows again#247 | Unit | pass | not run | not run | not run |
| a collection never keeps a failed start (#189) > a schema error on the first read: fixed at the source, the next read loads#189 | Unit | pass | not run | not run | not run |
| a collection never keeps a failed start (#189) > a source that is down for the first read: the next read loads#189 | Unit | pass | not run | not run | not run |
| a collection never keeps a failed start (#189) > a source whose init fails once: the next read starts it again#189 | Unit | pass | not run | not run | not run |
| a collection never keeps a failed start (#189) > readers while it loads share the one load#189 | Unit | pass | not run | not run | not run |
| a dimension (a language, a version) never keeps a failed outline (#192) > fr fails to build once: the next fr page builds#192 | Unit | pass | not run | not run | not run |
| a folder sidecar that fails to load once is loaded again (#246) > its groups: the next read has the label#246 | Unit | pass | not run | not run | not run |
| a folder sidecar that fails to load once is loaded again (#246) > once loaded, the sidecars are kept: readers share the one load#246 | Unit | pass | not run | not run | not run |
| a folder sidecar that fails to load once is loaded again (#246) > the collection: the next read loads it#246 | Unit | pass | not run | not run | not run |
| a live edit that breaks the outline keeps the last good one > an entry the outline places nowhere: the nav stays, an error says why, the fix applies | Unit | pass | not run | not run | not run |
| a live edit that breaks the outline keeps the last good one > the first weave failing is still the caller’s error (there is nothing to keep) | Unit | pass | not run | not run | not run |
| a live source keeps going (#190) > a dropped connection is opened again, and what changed meanwhile is read#190 | Unit | pass | not run | not run | not run |
| a live source keeps going (#190) > one bad update (a field the schema refuses) does not stop the ones after it#190 | Unit | pass | not run | not run | not run |
| a source that is down never leaves live connections behind > a reconnect whose read fails waits and tries again on the same connection | Unit | pass | not run | not run | not run |
| a source that is down never leaves live connections behind > reads that fail while the source is down share one connection, and the change it brings applies once | Unit | pass | not run | not run | not run |
| site search follows the content (#193) > a dimensioned site: a page the default coordinate's live source adds is found by the next search#193 | Unit | pass | not run | not run | not run |
| site search follows the content (#193) > a failed first build is not kept: the next search builds again#193 | Unit | pass | not run | not run | not run |
| site search follows the content (#193) > a page a live source adds is found by the next search#193 | Unit | pass | not run | not run | not run |
| the outline is stamped with the content it read, never a newer version (#326) > a change that lands while its entries are graphed: the next read weaves again#326 | Unit | pass | not run | not run | not run |
| the outline is stamped with the content it read, never a newer version (#326) > the first read of a collection not yet loaded weaves once: its load is not a change#326 | Unit | pass | not run | not run | not run |
packages/content/test/link.test.ts | |||||
| Link > leaves an unknown address as written | Unit | pass | not run | not run | not run |
| Link > passes a bare href through outside a shell | Unit | pass | not run | not run | not run |
| Link > passes absolute, external, anchor and relative hrefs through without asking the site | Unit | pass | not run | not run | not run |
| Link > resolves a bare href through the site under the shell base, keeping its fragment | Unit | pass | not run | not run | not run |
| Link > resolves an old address to its page | Unit | pass | not run | not run | not run |
packages/content/test/live-stamp.test.ts | |||||
| a live remote never misses an edit made while its first value is read (#551) > live.get: an edit that lands as the first snapshot is taken still reaches the client#551 | Unit | pass | not run | not run | not run |
| a live remote never misses an edit made while its first value is read (#551) > live.list: an edit that lands as the first snapshot is taken still reaches the client#551 | Unit | pass | not run | not run | not run |
packages/content/test/loaders-stress.test.ts | |||||
| loaders — demented shapes > a git spec with an @ref AND a sub path AND regex opts survives | Unit | pass | not run | not run | not run |
| loaders — demented shapes > a loader nested inside a ternary inside an object | Unit | pass | not run | not run | not run |
| loaders — demented shapes > a non-literal first arg (template literal) is rejected loudly | Unit | pass | not run | not run | not run |
| loaders — demented shapes > an unknown loader method is rejected with a helpful message | Unit | pass | not run | not run | not run |
| loaders — demented shapes > empty input, whitespace-only input, and marker-free input are no-ops | Unit | pass | not run | not run | not run |
| loaders — demented shapes > the marker inside a comment and a string is not a call (AST) | Unit | pass | not run | not run | not run |
| loaders — demented shapes > two loaders on one line, both rewrite, import injected once | Unit | pass | not run | not run | not run |
| scanner fallback — when the AST bails on an unparseable tail > loaders: a git spec with regex opts survives the fallback path | Unit | pass | not run | not run | not run |
| scanner fallback — when the AST bails on an unparseable tail > loaders: fallback finds the call after an unparseable tail, string marker ignored | Unit | pass | not run | not run | not run |
packages/content/test/loaders.test.ts | |||||
| expand_braces > expands a single alternation | Unit | pass | not run | not run | not run |
| expand_braces > expands multiple groups as a cartesian product | Unit | pass | not run | not run | not run |
| expand_braces > handles nested braces | Unit | pass | not run | not run | not run |
| expand_braces > leaves an unbalanced brace untouched | Unit | pass | not run | not run | not run |
| expand_braces > passes a brace-free pattern straight through | Unit | pass | not run | not run | not run |
| find_loader_calls > AST path: ignores the marker inside a comment or string (only real call nodes count) | Unit | pass | not run | not run | not run |
| find_loader_calls > captures verbatim options that contain regex literals with slashes in char classes | Unit | pass | not run | not run | not run |
| find_loader_calls > finds a bare git call with no options | Unit | pass | not run | not run | not run |
| find_loader_calls > finds all four loader kinds | Unit | pass | not run | not run | not run |
| find_loader_calls > is not fooled by a close-paren inside a string option | Unit | pass | not run | not run | not run |
| find_loader_calls > scanner fallback: still ignores comments/strings when the source does not parse | Unit | pass | not run | not run | not run |
| git_checkout_dir > joins under the project cache root | Unit | pass | not run | not run | not run |
| git_glob_pattern > honors a custom extension | Unit | pass | not run | not run | not run |
| git_glob_pattern > is a root-absolute glob under node_modules/.ogygia/content/<slug>/<sub> | Unit | pass | not run | not run | not run |
| git_glob_pattern > omits the sub segment when there is none | Unit | pass | not run | not run | not run |
| git_slug > is the whole spec (owner, repo, ref, sub), filesystem-safe | Unit | pass | not run | not run | not run |
| git_slug > never spells two specs one way | Unit | pass | not run | not run | not run |
| loader_patterns — the opinionated directory form > a file-looking path (dotted basename) is left alone — never treated as a directory | Unit | pass | not run | not run | not run |
| loader_patterns — the opinionated directory form > an explicit glob passes through (brace-expanded, unchanged semantics) | Unit | pass | not run | not run | not run |
| loader_patterns — the opinionated directory form > dot-relative directories still expand (`.`/`..` are not file-looking) | Unit | pass | not run | not run | not run |
| loader_patterns — the opinionated directory form > folder(dir) derives the +doc.svx / +meta.json convention set | Unit | pass | not run | not run | not run |
| loader_patterns — the opinionated directory form > markdown(dir) derives *.svx + *.md; json(dir) derives *.json; trailing slash normalized | Unit | pass | not run | not run | not run |
| loader_patterns — the opinionated directory form > rewrite emits the array-form glob for a directory argument (dev + build agree) | Unit | pass | not run | not run | not run |
| lockfile round-trip > per-slug sha entries round-trip through the shared build cache | Unit | pass | not run | not run | not run |
| parse_git_spec > owner/repo → default ref HEAD, empty sub | Unit | pass | not run | not run | not run |
| parse_git_spec > owner/repo:path → sub, default ref | Unit | pass | not run | not run | not run |
| parse_git_spec > owner/repo@ref:path → all three | Unit | pass | not run | not run | not run |
| parse_git_spec > strips leading/trailing slashes from the sub path | Unit | pass | not run | not run | not run |
| parse_git_spec > throws on a spec with no owner/repo | Unit | pass | not run | not run | not run |
| rewrite_loaders > brace alternation → Vite array form (dev matcher drops `{+doc,…}` braces, so expand them) | Unit | pass | not run | not run | not run |
| rewrite_loaders > git → folder(import.meta.glob(...)) with a lazy glob + aliased import | Unit | pass | not run | not run | not run |
| rewrite_loaders > json → json(...) and folder → folder(...), importing only what is used | Unit | pass | not run | not run | not run |
| rewrite_loaders > leaves a source with no loader calls untouched (no injected import) | Unit | pass | not run | not run | not run |
| rewrite_loaders > markdown → markdown(import.meta.glob(<literal glob>, { eager: false })) | Unit | pass | not run | not run | not run |
packages/content/test/markdown-bits.test.ts | |||||
| code(): a snippet rendered at build time > renders the same code html as the same fence in a markdown document, but for its code id | Unit | pass | not run | not run | not run |
| md(): a markdown string rendered at build time > content that compiles to something dynamic is a build error | Unit | pass | not run | not run | not run |
| md(): a markdown string rendered at build time > renders static prose to html | Unit | pass | not run | not run | not run |
| remarkLinks > collects every markdown link, whatever it points at; raw <a> html is not a link node | Unit | pass | not run | not run | not run |
packages/content/test/markdown-cache-key.test.ts | |||||
| markup cache key > a moved file with the same content bakes its own CSS key | Unit | pass | not run | not run | not run |
| markup cache key > the same file compiled again still hits the cache | Unit | pass | not run | not run | not run |
packages/content/test/markdown-start.test.ts | |||||
| the highlighter never keeps a failed start (#248) > once started it is kept: highlights while it starts share the one start#248 | Unit | pass | not run | not run | not run |
| the highlighter never keeps a failed start (#248) > the first start fails: the next highlight starts it again#248 | Unit | pass | not run | not run | not run |
| the markdown preprocessor never keeps a failed start (#248) > mdsvex fails to start: the next page renders#248 | Unit | pass | not run | not run | not run |
packages/content/test/markdown.test.ts | |||||
| code dialect — shiki transformers passthrough > a plain fence (no variant claims it) stays the single-variant path | Unit | pass | not run | not run | not run |
| code dialect — shiki transformers passthrough > a variant generator produces a multi-variant switcher (both versions inline) | Unit | pass | not run | not run | not run |
| code dialect — shiki transformers passthrough > applies a transformer to every fence (the ecosystem contract) | Unit | pass | not run | not run | not run |
| code dialect — shiki transformers passthrough > passes the raw fence infostring to transformers as meta.__raw (so {1-3} line highlight works) | Unit | pass | not run | not run | not run |
| code-block ids > gives two identical blocks in one section distinct ids | Unit | pass | not run | not run | not run |
| code-block ids > is a stable content hash — the id survives inserting a block earlier in the section | Unit | pass | not run | not run | not run |
| code-block ids > stamps a scoped `slug-code-<hash>` id onto the <pre> in the SSR HTML | Unit | pass | not run | not run | not run |
| code-block ids > uses a bare `code-<hash>` id for a block before any heading | Unit | pass | not run | not run | not run |
| content preset dispatch (v3 config surface) > routes a marker-tagged variant through the preset pipeline, unmarked through the default | Unit | pass | not run | not run | not run |
| content preset dispatch (v3 config surface) > unknown preset on a variant errors listing the configured names | Unit | pass | not run | not run | not run |
| escape_svelte / wrap_html > escapes backticks and ${ for {@html} | Unit | pass | not run | not run | not run |
| escape_svelte / wrap_html > wraps with class or leaves bare | Unit | pass | not run | not run | not run |
| markdown preset > exposes .svx / .md extensions | Unit | pass | not run | not run | not run |
| markdown preset > normalize_shiki defaults to github dual themes + light-dark() | Unit | pass | not run | not run | not run |
| markdown preset > ogygiaPreprocess() returns an mdsvex preprocessor | Unit | pass | not run | not run | not run |
| prose dialect — remark/rehype passthrough > runs a user rehype plugin (adds an attribute to an element) | Unit | pass | not run | not run | not run |
| prose dialect — remark/rehype passthrough > runs a user remark plugin after the built-in passes | Unit | pass | not run | not run | not run |
| prose dialect — remark/rehype passthrough > takes a plugin with its own this, a plugin with options, and a unified preset | Unit | pass | not run | not run | not run |
| remarkHeadingId > strips {#id} into hProperties.id | Unit | pass | not run | not run | not run |
| scoped heading ids > a heading with inline code shows its braces in metadata.headings, not entities | Unit | pass | not run | not run | not run |
| scoped heading ids > an explicit {#id} reserves it: a later heading that slugs to it gets a suffix | Unit | pass | not run | not run | not run |
| scoped heading ids > de-dupes colliding scoped ids with a numeric suffix | Unit | pass | not run | not run | not run |
| scoped heading ids > joins the ancestor path for auto-slugged headings | Unit | pass | not run | not run | not run |
| scoped heading ids > keeps an explicit {#id} verbatim and scopes its children under it | Unit | pass | not run | not run | not run |
| scoped heading ids > metadata.headings carries the SAME scoped ids | Unit | pass | not run | not run | not run |
| tab component injection (plain barrel) > ::: code-group injects the plain TabGroup + Tab barrel import | Unit | pass | not run | not run | not run |
| tab component injection (plain barrel) > an import inside a fenced code SAMPLE is not treated as a real import (Shiki escapes it) | Unit | pass | not run | not run | not run |
| tab component injection (plain barrel) > author import + ::: syntax → not double-injected | Unit | pass | not run | not run | not run |
| tab component injection (plain barrel) > does not inject when no tab syntax is used | Unit | pass | not run | not run | not run |
| tab component injection (plain barrel) > leaves an author's `import { TabGroup, Tab } from 'ogygia/content'` untouched (no upgrade) | Unit | pass | not run | not run | not run |
| tab component injection (plain barrel) > leaves sibling barrel specifiers untouched (no split) | Unit | pass | not run | not run | not run |
packages/content/test/messages-runtime.test.ts | |||||
| content runtime messages > a prerender of a production build prints the wording, then the page | Unit | pass | not run | not run | not run |
| content runtime messages > a production browser bundle has no wording to print, even while prerendering | Unit | pass | not run | not run | not run |
| content runtime messages > a production request prints the page alone | Unit | pass | not run | not run | not run |
packages/content/test/og-code.test.ts | |||||
| dedent > blank lines do not constrain the common indent | Unit | pass | not run | not run | not run |
| dedent > empty / whitespace-only → empty | Unit | pass | not run | not run | not run |
| dedent > leaves already-flush text alone | Unit | pass | not run | not run | not run |
| dedent > strips common leading indentation and trims blank first/last lines | Unit | pass | not run | not run | not run |
| rewrite_code — md() > bakes a markdown string (dedented) and inlines og_html_region | Unit | pass | not run | not run | not run |
| rewrite_code — md() > code() and md() coexist in one module; one import injected | Unit | pass | not run | not run | not run |
| rewrite_code — md() > rejects an interpolated md() template | Unit | pass | not run | not run | not run |
| rewrite_code — md() > rejects md() with wrong arity | Unit | pass | not run | not run | not run |
| rewrite_code > bakes a template-literal snippet, dedents it, and inlines og_html_region | Unit | pass | not run | not run | not run |
| rewrite_code > ignores the marker in a comment or string | Unit | pass | not run | not run | not run |
| rewrite_code > multiple snippets in one module all bake and the import injects once | Unit | pass | not run | not run | not run |
| rewrite_code > rejects a non-literal lang | Unit | pass | not run | not run | not run |
| rewrite_code > rejects an interpolated template source (build error) | Unit | pass | not run | not run | not run |
| rewrite_code > rejects wrong arity | Unit | pass | not run | not run | not run |
| rewrite_code > returns the same reference when there is nothing to do | Unit | pass | not run | not run | not run |
| rewrite_code > threads the meta infostring through as the third arg | Unit | pass | not run | not run | not run |
| rewrite_code > works inside a .svelte <script> block; the import lands at the block top; prose untouched | Unit | pass | not run | not run | not run |
packages/content/test/pager.test.ts | |||||
| Pager > keeps a lone next link in the second cell | Unit | pass | not run | not run | not run |
| Pager > labels the links Previous and Next by default | Unit | pass | not run | not run | not run |
| Pager > links the previous and next page with their labels and titles | Unit | pass | not run | not run | not run |
| Pager > renders nothing without a previous or next page | Unit | pass | not run | not run | not run |
packages/content/test/property-frontmatter.test.ts | |||||
| frontmatter > a flat map of plain keys to quoted strings, numbers and booleans reads back as written | Unit | pass | not run | not run | not run |
| frontmatter > any text reads, or is refused with content_frontmatter_invalid only | Unit | pass | not run | not run | not run |
| frontmatter > deep nesting is read or refused, never a stack overflow | Unit | pass | not run | not run | not run |
packages/content/test/property-search-excerpt.test.ts | |||||
| search excerpt > marks only text: no other markup, and without the marks it is the escaped text | Unit | pass | not run | not run | not run |
packages/content/test/region-emit.test.ts | |||||
| the module script, in any spelling > <script context='module'> is the module, not the template | Unit | pass | not run | not run | not run |
| the module script, in any spelling > <script context="module"> is the module, not the template | Unit | pass | not run | not run | not run |
| the module script, in any spelling > <script context=module> is the module, not the template | Unit | pass | not run | not run | not run |
| the module script, in any spelling > <script data-note="a>b" module> is the module, not the template | Unit | pass | not run | not run | not run |
| the module script, in any spelling > <script lang="ts" context = "module"> is the module, not the template | Unit | pass | not run | not run | not run |
| the module script, in any spelling > <script module> is the module, not the template | Unit | pass | not run | not run | not run |
| the module script, in any spelling > a `<script>` written in a comment is no instance script: the page is still a region | Unit | pass | not run | not run | not run |
| the module script, in any spelling > a browser script is not the module: `type="module"` and `data-module` keep the component path | Unit | pass | not run | not run | not run |
| the module script, in any spelling > a script that only says module in a value is not the module | Unit | pass | not run | not run | not run |
| try_region_emit > a fence with backticks, backslashes and `${` lands in the region exactly as highlighted | Unit | pass | not run | not run | not run |
| try_region_emit > allows braces inside fence content (code is code) | Unit | pass | not run | not run | not run |
| try_region_emit > does not confuse digits in prose with fence tokens | Unit | pass | not run | not run | not run |
| try_region_emit > emits a serialized region for pure prose + fences | Unit | pass | not run | not run | not run |
| try_region_emit > escapes prose braces to entities (text, not expressions — md is content) | Unit | pass | not run | not run | not run |
| try_region_emit > falls back only on instance scripts; inert tags stay content | Unit | pass | not run | not run | not run |
| try_region_emit > handles a module with no module script (frontmatter-less md) | Unit | pass | not run | not run | not run |
| try_region_emit > JSON-escapes </script> in content so the module script cannot terminate early | Unit | pass | not run | not run | not run |
| try_region_emit > keeps extra module lines (the source self-import) | Unit | pass | not run | not run | not run |
| try_region_emit > reads a Svelte 5 `<script module>` as the module script, as it does `context="module"` | Unit | pass | not run | not run | not run |
| unescape_svelte > is the exact inverse of escape_svelte | Unit | pass | not run | not run | not run |
| unescape_svelte > round-trips real fence HTML through the embed codec | Unit | pass | not run | not run | not run |
packages/content/test/region-store.test.ts | |||||
| RegionStore > addresses are stable, input-sensitive, and version-sensitive | Unit | pass | not run | not run | not run |
| RegionStore > carries the islands field when present | Unit | pass | not run | not run | not run |
| RegionStore > namespaces are disjoint | Unit | pass | not run | not run | not run |
| RegionStore > round-trips a serialized region under its namespace | Unit | pass | not run | not run | not run |
packages/content/test/regions.test.ts | |||||
| region_key > is the basename verbatim, minus extension (no normalization) | Unit | pass | not run | not run | not run |
| rewrite_regions > globs the folder and emits raw-region imports + a basename-keyed object | Unit | pass | not run | not run | not run |
| rewrite_regions > ignores the marker in a comment or string | Unit | pass | not run | not run | not run |
| rewrite_regions > leaves a module with no regions() call untouched (same reference) | Unit | pass | not run | not run | not run |
| rewrite_regions > rejects a non-literal glob argument | Unit | pass | not run | not run | not run |
| rewrite_regions > throws build-voice on a duplicate key (same basename in nested dirs) | Unit | pass | not run | not run | not run |
packages/content/test/remotes.test.ts | |||||
| withRemotes() > a value that is not a content() handle is refused with its code | Unit | pass | not run | not run | not run |
| withRemotes() > list is a query by default for a source that reads at request time | Unit | pass | not run | not run | not run |
| withRemotes() > list prerenders a static source, with dynamic on by default | Unit | pass | not run | not run | not run |
| withRemotes() > live.get answers null for a missing id unless notFound says otherwise | Unit | pass | not run | not run | not run |
packages/content/test/render-md.test.ts | |||||
| md() component tags > a component tag inside inline code or a fence is text, not an error | Unit | pass | not run | not run | not run |
| md() component tags > a component tag is a coded build error: "# Title\n\n<Widget label=\"x\" />\n" | Unit | pass | not run | not run | not run |
| md() component tags > a component tag is a coded build error: "<Foo />" | Unit | pass | not run | not run | not run |
| md() component tags > a component tag is a coded build error: "<Foo>child</Foo>" | Unit | pass | not run | not run | not run |
| md() component tags > a component tag is a coded build error: "<ui.Button />" | Unit | pass | not run | not run | not run |
| md() component tags > a component tag is a coded build error: "Some prose, then <Foo /> inline." | Unit | pass | not run | not run | not run |
| md() component tags > plain html tags and prose stay static | Unit | pass | not run | not run | not run |
packages/content/test/search-client.test.ts | |||||
| SearchClient: a query is answered or rejected, never left waiting > a client destroyed, or failed, before its index loads leaves no unhandled rejection when nothing awaits ready | Unit | pass | not run | not run | not run |
| SearchClient: a query is answered or rejected, never left waiting > a query the worker answers | Unit | pass | not run | not run | not run |
| SearchClient: a query is answered or rejected, never left waiting > a query the worker fails: rejected with the worker’s message | Unit | pass | not run | not run | not run |
| SearchClient: a query is answered or rejected, never left waiting > an empty query is [] at once, in any state | Unit | pass | not run | not run | not run |
| SearchClient: a query is answered or rejected, never left waiting > destroy() twice is the same as once (a manual destroy, then the palette’s unmount) | Unit | pass | not run | not run | not run |
| SearchClient: a query is answered or rejected, never left waiting > destroy(): waiting queries and later ones are rejected, the worker ends | Unit | pass | not run | not run | not run |
| SearchClient: a query is answered or rejected, never left waiting > the index fails to load: the queries waiting on it, and every query after, are rejected | Unit | pass | not run | not run | not run |
| SearchClient: a query is answered or rejected, never left waiting > the worker crashes: waiting queries and later ones are rejected | Unit | pass | not run | not run | not run |
| the search worker: a failed query is answered with its id > a newer load replaces the index a waiting query was going to read: it is answered from the new one | Unit | pass | not run | not run | not run |
| the search worker: a failed query is answered with its id > the index failed to build: a query is answered `error` with ITS id | Unit | pass | not run | not run | not run |
| the search worker: a failed query is answered with its id > the index failed to download once: the next query downloads it again and is answered | Unit | pass | not run | not run | not run |
packages/content/test/search-page.test.ts | |||||
| SearchPage > counts one result in the singular | Unit | pass | not run | not run | not run |
| SearchPage > is a GET form that sends the term as q, to the current URL unless given an action | Unit | pass | not run | not run | not run |
| SearchPage > lists nothing and counts nothing before a term is given | Unit | pass | not run | not run | not run |
| SearchPage > renders each hit on the server: a link with its title, heading, excerpt and section | Unit | pass | not run | not run | not run |
| SearchPage > says there are no results for a term that found none | Unit | pass | not run | not run | not run |
| SearchPage > shows the title and placeholder, Search and Search the docs… by default | Unit | pass | not run | not run | not run |
packages/content/test/shiki-highlighters.test.ts | |||||
| snippets, and highlights that alternate configs, do not make a highlighter each time | Unit | pass | not run | not run | not run |
| two unnamed theme objects are two themes | Unit | pass | not run | not run | not run |
packages/content/test/site-checks.test.ts | |||||
| links() check > a page with no links property is warned about once and passes; links: [] is link data | Unit | pass | not run | not run | not run |
| links() check > a relative link (a colocated asset) is not judged | Unit | pass | not run | not run | not run |
packages/content/test/site-context.test.ts | |||||
| a site context that throws > a context that answers reports nothing | Unit | pass | not run | not run | not run |
| a site context that throws > serves the public projection and reports content_site_context_failed with the thrown error | Unit | pass | not run | not run | not run |
packages/content/test/site-emit.test.ts | |||||
| emissions over a nested nav tree > llms.txt flattens a nested group into its section, with summaries and plain links | Unit | pass | not run | not run | not run |
| emissions over a nested nav tree > the sitemap lists the leaves of nested groups, as absolute URLs | Unit | pass | not run | not run | not run |
packages/content/test/site-reads.test.ts | |||||
| a site read per request > a context that throws reads the public projection | Unit | pass | not run | not run | not run |
| a site read per request > a page whose meta has no headings has none | Unit | pass | not run | not run | not run |
| a site read per request > an emission handler is a Kit GET handler (it takes Kit's RequestEvent) | Unit | pass | not run | not run | not run |
| a site read per request > load and entries work detached from the site, as a route file destructures them | Unit | pass | not run | not run | not run |
| a site read per request > load reads the page in the context the request derives (a draft under preview) | Unit | pass | not run | not run | not run |
| a site read per request > prevNext 'order' suggests the next page, false suggests nothing | Unit | pass | not run | not run | not run |
| a site’s remotes > a page crosses without its source reader, and with its body awaited | Unit | pass | not run | not run | not run |
| a site’s remotes > nav and meta serve the coordinate the slug names; no slug is the default | Unit | pass | not run | not run | not run |
packages/content/test/site-slot.test.ts | |||||
| SiteSlot > lets the site's own `a` win over the default Link | Unit | pass | not run | not run | not run |
| SiteSlot > renders `a` through Link by default, so a slug-form href resolves under the base | Unit | pass | not run | not run | not run |
| SiteSlot > renders the component the site maps the tag to, with its attributes and children | Unit | pass | not run | not run | not run |
| SiteSlot > renders the plain element when nothing maps the tag | Unit | pass | not run | not run | not run |
packages/content/test/site.test.ts | |||||
| address seams — group slug + trail scope > group `slug` drops a segment from the ADDRESS while nav/id keep structure | Unit | pass | not run | not run | not run |
| address seams — group slug + trail scope > trail: 'group' stops prev/next at the section boundary; 'site' crosses it | Unit | pass | not run | not run | not run |
| build_rss > emits sorted RSS 2.0 with absolutized links | Unit | pass | not run | not run | not run |
| emissions — raw markdown (from entry.source) > entries() lists only slugs whose entry has source; unknown or source-less → 404 | Unit | pass | not run | not run | not run |
| emissions — raw markdown (from entry.source) > keeps frontmatter when asked | Unit | pass | not run | not run | not run |
| emissions — raw markdown (from entry.source) > serves entry.source(), frontmatter stripped by default | Unit | pass | not run | not run | not run |
| emissions > llms.txt is an llmstxt.org index grouped by section | Unit | pass | not run | not run | not run |
| emissions > llms.txt renders top-level links under Pages and titles+summaries | Unit | pass | not run | not run | not run |
| emissions > sitemap honors an explicit origin (for prerendered output) | Unit | pass | not run | not run | not run |
| emissions > sitemap lists every leaf as an absolute URL | Unit | pass | not run | not run | not run |
| link audit > a link through redirect history is a warn (stale), not an error | Unit | pass | not run | not run | not run |
| link audit > checks in load pass a clean page; self-anchor resolves against own headings | Unit | pass | not run | not run | not run |
| link audit > checks in load throw on an error finding (build/dev failure) | Unit | pass | not run | not run | not run |
| link audit > links() check flags a missing page and a missing anchor; skips external + out-of-mount | Unit | pass | not run | not run | not run |
| mountBase > subtracts the slug from the pathname | Unit | pass | not run | not run | not run |
| outline — build-time safety > errors on a glob pick that matches nothing | Unit | pass | not run | not run | not run |
| outline — build-time safety > errors on a slug collision across collections | Unit | pass | not run | not run | not run |
| outline — build-time safety > errors on an unknown pick id | Unit | pass | not run | not run | not run |
| outline — build-time safety > errors on orphan entries (fully manual, leftover) | Unit | pass | not run | not run | not run |
| outline — convention (bare collection) > applies the mount base to hrefs, slugs stay bare | Unit | pass | not run | not run | not run |
| outline — convention (bare collection) > groups by section, orders by NN-, titles from data | Unit | pass | not run | not run | not run |
| outline — group label from the source groups() facet > overrides a section label via groups() (folder()/CMS supply it as data) | Unit | pass | not run | not run | not run |
| outline — multi-collection arrangement > arranges two collections with a base prefix and a link | Unit | pass | not run | not run | not run |
| outline — multi-collection arrangement > glob pick expands in convention order | Unit | pass | not run | not run | not run |
| outline — multi-collection arrangement > pick() places explicit ids in order; a bare remainder mops up the rest | Unit | pass | not run | not run | not run |
| outline — placement and addresses > a directory with its own page leads its group with that page | Unit | pass | not run | not run | not run |
| outline — placement and addresses > a group base with stray slashes still makes a clean slug | Unit | pass | not run | not run | not run |
| outline — placement and addresses > a link keeps its own href under any mount base | Unit | pass | not run | not run | not run |
| outline — placement and addresses > a nested group without a `slug` takes the enclosing group's address policy | Unit | pass | not run | not run | not run |
| outline — placement and addresses > an entry an earlier item placed is skipped by a later pick, not placed twice | Unit | pass | not run | not run | not run |
| outline — placement and addresses > an entry's old address joins its group's base, like its own slug | Unit | pass | not run | not run | not run |
| outline — placement and addresses > one weave per read context: readers at once share it, a later reader keeps it | Unit | pass | not run | not run | not run |
| outline — placement and addresses > siblings follow their order; with no order they go by id | Unit | pass | not run | not run | not run |
| outline — placement and addresses > the read context reaches the collection filter: a draft is placed only under preview | Unit | pass | not run | not run | not run |
| redirect history (redirect_from) > aliases resolve to their canonical slug; entries() includes them | Unit | pass | not run | not run | not run |
| redirect history (redirect_from) > an alias shadowing a live page is a build error | Unit | pass | not run | not run | not run |
| redirect history (redirect_from) > load 308s an alias to the canonical URL (base by subtraction) | Unit | pass | not run | not run | not run |
| redirect history (redirect_from) > two entries claiming one old address is a build error | Unit | pass | not run | not run | not run |
| rehypeOverrides (element → slot rewrite) > rewrites configured tags to the slot with a `tag` prop; leaves others alone | Unit | pass | not run | not run | not run |
| remarkLinks collector > collects every markdown link with text and line into fm.links | Unit | pass | not run | not run | not run |
| search — engine + brain (Orama) > orama_engine builds and finds two documents that share an id | Unit | pass | not run | not run | not run |
| search — engine + brain (Orama) > orama_engine indexes docs and ranks a term match | Unit | pass | not run | not run | not run |
| search — engine + brain (Orama) > orama_engine: a page whose title is the query answers first even when the engine ranks its section above it | Unit | pass | not run | not run | not run |
| search — engine + brain (Orama) > orama's insert answers at once for the engine's schema, so a build's index is whole before its first query | Unit | pass | not run | not run | not run |
| search — engine + brain (Orama) > rerank: a hit whose title carries the query outranks a higher-scored body match | Unit | pass | not run | not run | not run |
| search — engine + brain (Orama) > rerank: of two hits whose title carries the query, the page itself outranks its section | Unit | pass | not run | not run | not run |
| search — engine + brain (Orama) > site.emit.search() serializes the section documents | Unit | pass | not run | not run | not run |
| search — engine + brain (Orama) > site.search() returns ranked hits with mount-based hrefs; scoping pre-filters | Unit | pass | not run | not run | not run |
| search — projection > a page with two heading-less sections is one document holding both, never two with one id | Unit | pass | not run | not run | not run |
| search — projection > build_docs makes one document per section, with slug + anchor | Unit | pass | not run | not run | not run |
| search — projection > split_sections chunks by heading, aligned to collected headings | Unit | pass | not run | not run | not run |
| search — projection > strip_prose keeps the words the browser shows, whatever the tags hold | Unit | pass | not run | not run | not run |
| search — projection > strip_prose removes frontmatter, code, tags, markdown syntax | Unit | pass | not run | not run | not run |
| site — brains > doc() headings ride through from meta | Unit | pass | not run | not run | not run |
| site — brains > doc() returns null for an unknown slug | Unit | pass | not run | not run | not run |
| site — brains > doc() returns section, headings, and order-based trail | Unit | pass | not run | not run | not run |
| site — brains > entries() yields every leaf slug in reading order | Unit | pass | not run | not run | not run |
| site — brains > prevNext "graph" prefers related, falls back to order | Unit | pass | not run | not run | not run |
packages/content/test/sources.test.ts | |||||
| blocks() > a JSON module wrapped in a default export is unwrapped | Unit | pass | not run | not run | not run |
| blocks() > reads a bare array, a { blocks, meta } page, a { blocks, data } page and a single node | Unit | pass | not run | not run | not run |
| content() > a self relation resolves to the handle itself | Unit | pass | not run | not run | not run |
| content() > data is typed by the schema, and by every layer of a schema array | Unit | pass | not run | not run | not run |
| content() > the handle reaches its collection: withRemotes accepts it | Unit | pass | not run | not run | not run |
| defineSource refs > a ref carries neither body nor source, even when the format makes both | Unit | pass | not run | not run | not run |
| folder() > a +meta.json wrapped in a default export is unwrapped | Unit | pass | not run | not run | not run |
| folder() > a file that is neither a page nor a sidecar fails at construction | Unit | pass | not run | not run | not run |
| folder() > a lazy +meta.json is not loaded until the first read | Unit | pass | not run | not run | not run |
| folder() > an index.md sidecar wins over a page pattern that also matches it, and its title is the label | Unit | pass | not run | not run | not run |
| folder() > bad numbering fails the first read, not construction | Unit | pass | not run | not run | not run |
| glob() > drops one extension only: a dotted name keeps its dots | Unit | pass | not run | not run | not run |
| markdown() > a module with its own styles threads its CSS key onto the body (baked or not) | Unit | pass | not run | not run | not run |
| markdown() > a region-emitted module bakes its HTML into the body | Unit | pass | not run | not run | not run |
packages/content/test/tab-groups.test.ts | |||||
| tab groups > hydrate_group restores a saved choice, else the fallback, and never replaces a choice made this session | Unit | pass | not run | not run | not run |
| tab groups > two blocks of one group share the choice, and the choice is saved | Unit | pass | not run | not run | not run |
| tab groups > with storage blocked, choosing and restoring still work in memory | Unit | pass | not run | not run | not run |
packages/content/test/tab.test.ts | |||||
| Tab > renders a tab panel that carries its label in data-label | Unit | pass | not run | not run | not run |
| TabGroup > hands its group and its panels to the island | Unit | pass | not run | not run | not run |
| TabGroup > uses the "tabs" group when none is given | Unit | pass | not run | not run | not run |
packages/content/test/tabs.test.ts | |||||
| a fence keeps its identity through the rewrite (#1146) > a ``` line whose info holds a backtick is no fence (CommonMark), so it hides no marker#1146 | Unit | pass | not run | not run | not run |
| a fence keeps its identity through the rewrite (#1146) > an info string that starts with the fence character is not merged into the fence run#1146 | Unit | pass | not run | not run | not run |
| a fence keeps its identity through the rewrite (#1146) > no tab wrapper is ever written inside a code fence#1146 | Unit | pass | not run | not run | not run |
| code-group — basics > emits one Tab per fence, labelled from [label] | Unit | pass | not run | not run | not run |
| code-group — basics > keeps the code content | Unit | pass | not run | not run | not run |
| code-group — basics > marks used | Unit | pass | not run | not run | not run |
| code-group — basics > strips the [label] from the fence but keeps the language | Unit | pass | not run | not run | not run |
| code-group — basics > wraps in a single <TabGroup>…</TabGroup> | Unit | pass | not run | not run | not run |
| code-group — fence robustness > ignores stray non-fence lines between blocks | Unit | pass | not run | not run | not run |
| code-group — fence robustness > respects fence length — a ``` inside a ```` block is content, not a close | Unit | pass | not run | not run | not run |
| code-group — fence robustness > supports tilde fences | Unit | pass | not run | not run | not run |
| code-group — fence robustness > tolerates an unclosed fence (runs to block end) | Unit | pass | not run | not run | not run |
| code-group — grouping / sync > defaults to a label-set key so identical sets sync | Unit | pass | not run | not run | not run |
| code-group — grouping / sync > honours an explicit group name on the opener | Unit | pass | not run | not run | not run |
| code-group — grouping / sync > two blocks with the same labels get the same auto group | Unit | pass | not run | not run | not run |
| code-group — labels & languages > falls back to "Tab N" when a fence has no [label] | Unit | pass | not run | not run | not run |
| code-group — labels & languages > handles [label] before OR after the language | Unit | pass | not run | not run | not run |
| code-group — labels & languages > handles a fence with only a [label] and no language | Unit | pass | not run | not run | not run |
| code-group — labels & languages > supports labels with spaces | Unit | pass | not run | not run | not run |
| CRLF line endings > handles a lone-CR document | Unit | pass | not run | not run | not run |
| CRLF line endings > is fence-aware under CRLF (a fenced == is content) | Unit | pass | not run | not run | not run |
| CRLF line endings > normalizes emitted output to LF (no stray carriage returns) | Unit | pass | not run | not run | not run |
| CRLF line endings > parses == markers written with CRLF | Unit | pass | not run | not run | not run |
| CRLF line endings > parses a code-group written with CRLF | Unit | pass | not run | not run | not run |
| escaping > a label or group holding { } stays text: Svelte never reads it as an expression (#469)#469 | Unit | pass | not run | not run | not run |
| escaping > escapes special characters in labels | Unit | pass | not run | not run | not run |
| grouping — cross-block sync & isolation > an explicit name overrides the label-set key | Unit | pass | not run | not run | not run |
| grouping — cross-block sync & isolation > different label sets get different code-group keys | Unit | pass | not run | not run | not run |
| grouping — cross-block sync & isolation > tabs blocks keep independent auto groups even when interleaved with code-groups | Unit | pass | not run | not run | not run |
| has_tabs — prose false positives stay false > does not fire on prose mentioning the feature names | Unit | pass | not run | not run | not run |
| has_tabs — prose false positives stay false > fires on a CRLF-terminated opener | Unit | pass | not run | not run | not run |
| has_tabs — prose false positives stay false > fires on a real opener even when buried mid-document | Unit | pass | not run | not run | not run |
| has_tabs gate > detects code-group and tabs openers | Unit | pass | not run | not run | not run |
| has_tabs gate > does not fire the pass when absent (identity + used=false) | Unit | pass | not run | not run | not run |
| has_tabs gate > ignores unrelated content | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > an empty code-group emits nothing and is not "used" | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > an empty tabs block emits nothing | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > does not treat "==" with no space as a marker | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > handles indented openers and markers | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > is a no-op on empty input | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > never throws on a lone opener with nothing after it | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > never throws on a wall of bare fences and markers | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > never throws on adversarial fence/marker soup | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > never throws on only-whitespace or newline noise | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > tolerates an unclosed block (runs to EOF) | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > tolerates extra whitespace around ::: and == | Unit | pass | not run | not run | not run |
| mixed real-world document > collects labels across both blocks in order | Unit | pass | not run | not run | not run |
| mixed real-world document > leaves the fenced code sample untouched | Unit | pass | not run | not run | not run |
| mixed real-world document > never throws on the whole document | Unit | pass | not run | not run | not run |
| mixed real-world document > preserves surrounding prose | Unit | pass | not run | not run | not run |
| mixed real-world document > produces balanced fences overall | Unit | pass | not run | not run | not run |
| mixed real-world document > transforms exactly the two real blocks | Unit | pass | not run | not run | not run |
| mixed real-world document > uses the label-set key and the explicit name respectively | Unit | pass | not run | not run | not run |
| multiple & mixed blocks > transforms several blocks in one document | Unit | pass | not run | not run | not run |
| tabs — basics > drops content before the first == marker | Unit | pass | not run | not run | not run |
| tabs — basics > emits one Tab per == marker | Unit | pass | not run | not run | not run |
| tabs — basics > keeps each tab body | Unit | pass | not run | not run | not run |
| tabs — fence robustness > a ":::" inside a code fence does NOT close the block early | Unit | pass | not run | not run | not run |
| tabs — fence robustness > a "== ..." line inside a code fence is NOT a tab marker | Unit | pass | not run | not run | not run |
| tabs — grouping > auto-numbers independent groups per block | Unit | pass | not run | not run | not run |
| tabs — grouping > honours an explicit group name | Unit | pass | not run | not run | not run |
| top-level fences are never touched > ignores ::: tabs inside a ```` block that contains ``` runs | Unit | pass | not run | not run | not run |
| top-level fences are never touched > ignores a ::: code-group written inside a top-level fence | Unit | pass | not run | not run | not run |
| well-formed output > emits balanced fences for a normal code-group | Unit | pass | not run | not run | not run |
| well-formed output > synthesizes a closer for an unclosed code-group fence | Unit | pass | not run | not run | not run |
| well-formed output > synthesizes a closer for an unclosed fence inside a tabs body | Unit | pass | not run | not run | not run |
| well-formed output > wraps each tab in exactly one <Tab>…</Tab> | Unit | pass | not run | not run | not run |