Tests / @ogygia/federation

@ogygia/federation

Version 0.14.0 latest
commit 620ddcca
228 test runs (228 tests, each run in Node, the browsers or both)
1.58× lines of test for each line of source (4,400 to 2,782) 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)
91.9% of source lines run by the tests
  • 211Unit
  • 0Browser
  • 17End to end
  • 0Type tests
  • 0Lint rules
  • 0Failing

Coverage

  • 91.9%Lines
  • 81.8%Branches
  • 84.3%Functions
  • 88.9%Statements

Every test

228 tests

TestKindNodeChromiumFirefoxWebKit
packages/federation/e2e/federation.spec.ts
a DEFERRED remote widget is a shell-signed hole the browser fetchesEnd to endnot runpasspasspass
a DEFERRED remote widget loads in the browser, in place of its placeholderEnd to endnot runpasspasspass
a remote widget as a STATIC region is baked into the shell home (storable)End to endnot runpasspasspass
a static widget whose peer answers an error status shows its card; the page renders (#931)#931End to endnot runpasspasspass
cross-app THAW: a signed notice AS a peer is accepted; unsigned is 401End to endnot runpasspasspass
mount(): the shell renders the whole cms app under /cms/End to endnot runpasspasspass
the __catalog manifest is unsigned inventory (names + prop names)End to endnot runpasspasspass
the fragment endpoints REQUIRE a signature (401 without one)End to endnot runpasspasspass
packages/federation/e2e/mfe-foreign-page.spec.ts
mounted in the shell: one warning per island, and the island repaints with the shell pageEnd to endnot runpasspasspass
on the cms front door the same island is local: silent, and the value survives hydrateEnd to endnot runpasspasspass
the cms-rendered probe island is spliced into the shell documentEnd to endnot runpasspasspass
packages/federation/e2e/mfe-peer-context.spec.ts
a cms island reads the context its page set, on the cms's doorEnd to endnot runpasspasspass
a cms island reads the context its page set, on the shell's doorEnd to endnot runpasspasspass
packages/federation/e2e/mfe-peer-hole.spec.ts
shows its server render, baked and deferredEnd to endnot runpasspasspass
packages/federation/e2e/mfe-two-widgets.spec.ts
each shows its own answerEnd to endnot runpasspasspass
packages/federation/e2e/router-page-set-context.spec.ts
a cms island reads the context its router page set, on the cms's doorEnd to endnot runpasspasspass
a cms island reads the context its router page set, on the shell's doorEnd to endnot runpasspasspass
packages/federation/test/absolutize.test.ts
absolutize > changes nothing outside the start tags the browser reads, on any pageUnitpassnot runnot runnot run
absolutize > leaves text that looks like an asset ref as the peer wrote itUnitpassnot runnot runnot run
absolutize > pins each attribute whose names differ past ASCII, each in its own value (#1115)#1115Unitpassnot runnot runnot run
absolutize > pins the asset refs of real tagsUnitpassnot runnot runnot run
packages/federation/test/body-cap.test.ts
read_capped_body > a chunked body past the cap is refused, read no further than one piece past itUnitpassnot runnot runnot run
read_capped_body > a GET or HEAD has no body to readUnitpassnot runnot runnot run
read_capped_body > any chunking: the bytes as sent when within the cap, else too large; never a piece past the capUnitpassnot runnot runnot run
packages/federation/test/body-unreadable.test.ts
a federation body that breaks off mid-upload is a 400 (#1427) > a thaw notice#1427Unitpassnot runnot runnot run
a federation body that breaks off mid-upload is a 400 (#1427) > the exposed table#1427Unitpassnot runnot runnot run
packages/federation/test/code-origins.test.ts
the code origins a shell allows > are every peer’s origins, replicas includedUnitpassnot runnot runnot run
the code origins a shell allows > no federate(): noneUnitpassnot runnot runnot run
packages/federation/test/federation-unregistered.test.ts
a federation request with no federate() run says federation_unregistered, onceUnitpassnot runnot runnot run
a path that is not a federation one says nothingUnitpassnot runnot runnot run
packages/federation/test/federation.test.ts
cross-app thaw > peer.drop evicts cached documents by their adopted tagsUnitpassnot runnot runnot run
deferred remote holes — the lifetime and renewal of a local hole > a hole signature covers each field on its own, whatever characters the fields holdUnitpassnot runnot runnot run
deferred remote holes — the lifetime and renewal of a local hole > a peer's redirect target is escaped into the moved card's href (#439)#439Unitpassnot runnot runnot run
deferred remote holes — the lifetime and renewal of a local hole > an expired hole is answered as an expired local one, and the runtime’s renewal re-signs itUnitpassnot runnot runnot run
deferred remote holes — the lifetime and renewal of a local hole > answers a live hole with the fragmentUnitpassnot runnot runnot run
deferred remote holes — the lifetime and renewal of a local hole > expires in SECONDS, by the app’s rule: the `ttl` window, or the life of the deploy on a stored pageUnitpassnot runnot runnot run
deferred remote holes — the lifetime and renewal of a local hole > refuses a forged hole and a renewal of one that has not expiredUnitpassnot runnot runnot run
Ed25519 signing / verification > a second authorized key still verifies (rotation / multi-caller)Unitpassnot runnot runnot run
Ed25519 signing / verification > a signature counts once however its base64 is spelledUnitpassnot runnot runnot run
Ed25519 signing / verification > a signature that is not canonical base64 is refused, even the first timeUnitpassnot runnot runnot run
Ed25519 signing / verification > accepts a fresh, correctly-signed request once and returns its claimsUnitpassnot runnot runnot run
Ed25519 signing / verification > AUDIENCE BINDING: a hop signed for cms.test is rejected at dash.test (same key)Unitpassnot runnot runnot run
Ed25519 signing / verification > federate() warns when peers may call in and the app has no audience to check them againstUnitpassnot runnot runnot run
Ed25519 signing / verification > NaN timestamp does not bypass the freshness gateUnitpassnot runnot runnot run
Ed25519 signing / verification > REPLAY: a byte-identical second delivery is rejectedUnitpassnot runnot runnot run
Ed25519 signing / verification > tampered claims (re-encoded x-og-user) break the signatureUnitpassnot runnot runnot run
Ed25519 signing / verification > the call capability (x-og-cap) > a call is accepted once, whichever of its two signatures arrives first (#822)#822Unitpassnot runnot runnot run
Ed25519 signing / verification > the call capability (x-og-cap) > a call signed the old way only still checks (peers upgrade one at a time)Unitpassnot runnot runnot run
Ed25519 signing / verification > the call capability (x-og-cap) > a call with its method, path, body, claims or audience changed is refusedUnitpassnot runnot runnot run
Ed25519 signing / verification > the call capability (x-og-cap) > a signed call carries one token that names itUnitpassnot runnot runnot run
Ed25519 signing / verification > the call capability (x-og-cap) > a token from another key is refused, and a bad token is not saved by good legacy headersUnitpassnot runnot runnot run
Ed25519 signing / verification > the call capability (x-og-cap) > the token alone checks, onceUnitpassnot runnot runnot run
Ed25519 signing / verification > without an `audience`, the Host a request names is never its audienceUnitpassnot runnot runnot run
Ed25519 signing / verification > without an `audience`, the ORIGIN the app is configured with is its audienceUnitpassnot runnot runnot run
federate() — registration + fail-closed > returns typed peer handles keyed by nameUnitpassnot runnot runnot run
federate() — registration + fail-closed > warns when it exposes but no peer has a key (and not with `open`)Unitpassnot runnot runnot run
lift_document — an app’s full HTML → the wire shape > a graph that is not an object passes through as it cameUnitpassnot runnot runnot run
lift_document — an app’s full HTML → the wire shape > a peer page’s context root reaches only its own body: lifted as a provider around it (#1974)#1974Unitpassnot runnot runnot run
lift_document — an app’s full HTML → the wire shape > any title and redirect target round-trip: lifted plain, escaped once, never markupUnitpassnot runnot runnot run
lift_document — an app’s full HTML → the wire shape > carries a head meta whole when its quoted content holds a `>`Unitpassnot runnot runnot run
lift_document — an app’s full HTML → the wire shape > carries none of ogygia's own per-document metas: the peer's router, CSR and dev scope stay the peer's (#1749)#1749Unitpassnot runnot runnot run
lift_document — an app’s full HTML → the wire shape > extracts title, stylesheet links, and SEO meta; drops charset/viewport; absolutizes assetsUnitpassnot runnot runnot run
lift_document — an app’s full HTML → the wire shape > lifts no stylesheet a head comment holds, and reads the head past a </head> in script text (#973)#973Unitpassnot runnot runnot run
lift_document — an app’s full HTML → the wire shape > lifts the title as plain text, its entities decoded (the shell escapes it once, #436)#436Unitpassnot runnot runnot run
lift_document — an app’s full HTML → the wire shape > pins the island graph to the remote: chunks, entry keys, snippet locationsUnitpassnot runnot runnot run
lift_document — an app’s full HTML → the wire shape > reads the document’s tags as a browser doesUnitpassnot runnot runnot run
lift_document — an app’s full HTML → the wire shape > takes the runtime only from a real runtime script, never from text that looks like one (#972)#972Unitpassnot runnot runnot run
mount() — claims auto-built from the table identity > a user override replaces the visitor, the table experiments still ride along, and its own experiment winsUnitpassnot runnot runnot run
mount() — claims auto-built from the table identity > anonymous + no experiments = NO claims header at allUnitpassnot runnot runnot run
mount() — claims auto-built from the table identity > signs c.visitor + EVERY table experiment into the hop — no hand-listingUnitpassnot runnot runnot run
mount() — claims auto-built from the table identity > STATUS CHANNEL: a mounted 404 answers 404 through the shellUnitpassnot runnot runnot run
peer transport — one per remote app > a pre-mutation in-flight fetch cannot repopulate the cache: its caller reads againUnitpassnot runnot runnot run
peer transport — one per remote app > a stale refresh that answers an error document never replaces the good copyUnitpassnot runnot runnot run
peer transport — one per remote app > coalesces concurrent misses into ONE upstream callUnitpassnot runnot runnot run
peer transport — one per remote app > failover: an unreachable primary tries the next origin; a 404 does notUnitpassnot runnot runnot run
peer transport — one per remote app > postDoc speaks AS the peer (origin header) and forwards the content-typeUnitpassnot runnot runnot run
peer transport — one per remote app > serves fresh, then STALE + refreshes in background after ttl (SWR)Unitpassnot runnot runnot run
peer transport — one per remote app > widgetDoc hits the catalog path with propsUnitpassnot runnot runnot run
peer transport — one per remote app > widgetDoc throws a plain Error; doc() throws http errors; a network failure is a 504Unitpassnot runnot runnot run
remote regions > a deferred remote region is a hole with a shell-signed urlUnitpassnot runnot runnot run
remote regions > a static remote page bakes its HTML and adopts the fragment’s tags into the captureUnitpassnot runnot runnot run
remote regions > mint_hole degrades to an empty inert region when no signer is installedUnitpassnot runnot runnot run
packages/federation/test/hole-peer-failure.test.ts
a deferred region's hole: the status names the failure > a page hole after a 500: a 502, never storedUnitpassnot runnot runnot run
a deferred region's hole: the status names the failure > a page hole after a 503: a 503, never storedUnitpassnot runnot runnot run
a deferred region's hole: the status names the failure > a page hole after a body cut midway: a 502, never storedUnitpassnot runnot runnot run
a deferred region's hole: the status names the failure > a page hole after no answer at all: a 504, never storedUnitpassnot runnot runnot run
a deferred region's hole: the status names the failure > a page hole whose peer page is not found: a 404 with no body, so the region keeps its fallback, never storedUnitpassnot runnot runnot run
a deferred region's hole: the status names the failure > a widget hole after a 500: a 502, never storedUnitpassnot runnot runnot run
a deferred region's hole: the status names the failure > a widget hole after a 503: a 503, never storedUnitpassnot runnot runnot run
a deferred region's hole: the status names the failure > a widget hole after a body cut midway: a 502, never storedUnitpassnot runnot runnot run
a deferred region's hole: the status names the failure > a widget hole after no answer at all: a 504, never storedUnitpassnot runnot runnot run
a deferred widget's hole when the peer fails > answers the widget when the peer doesUnitpassnot runnot runnot run
a deferred widget's hole when the peer fails > is not an empty success after a 503: the page can show its fallback and ask againUnitpassnot runnot runnot run
a deferred widget's hole when the peer fails > is not an empty success after a body cut midway: the page can show its fallback and ask againUnitpassnot runnot runnot run
a deferred widget's hole when the peer fails > is not an empty success after no answer at all: the page can show its fallback and ask againUnitpassnot runnot runnot run
packages/federation/test/owners.test.ts
a deploy thaw is owed to the peers that missed it, not to every peer > a peer that never takes it: given up after a bounded number of rounds, with a warning naming itUnitpassnot runnot runnot run
a deploy thaw is owed to the peers that missed it, not to every peer > its policy keeps the old numbers: a round no sooner than 30 s after the last, 10 roundsUnitpassnot runnot runnot run
a deploy thaw is owed to the peers that missed it, not to every peer > one peer refuses: only it is sent the thaw again, the others take it onceUnitpassnot runnot runnot run
a peer request belongs to the generation that started it (#210) > after a drop, the old request ending does not remove the new one: no second upstream fetch#210Unitpassnot runnot runnot run
the deploy thaw is tried again until it is done (#198) > done is done: a check after a successful thaw does nothing#198Unitpassnot runnot runnot run
the deploy thaw is tried again until it is done (#198) > requests during a check join it (one check, one thaw)#198Unitpassnot runnot runnot run
the deploy thaw is tried again until it is done (#198) > the peer never takes the thaw AND the store goes down after the first ask: the owed thaw goes without asking it again#198Unitpassnot runnot runnot run
the deploy thaw is tried again until it is done (#198) > the peer never takes the thaw: a later request thaws again, and the store is asked once#198Unitpassnot runnot runnot run
the deploy thaw is tried again until it is done (#198) > the store is down for the first check: a later request checks again and thaws#198Unitpassnot runnot runnot run
packages/federation/test/peer-answer-invalid.test.ts
a peer's answer that is not its JSON document > a mutation: a 502, and the code saidUnitpassnot runnot runnot run
a peer's answer that is not its JSON document > a page read: a 502 the page handles, and the code saidUnitpassnot runnot runnot run
a peer's answer that is not its JSON document > a static widget: the boundary card in its place, and the code saidUnitpassnot runnot runnot run
a peer's answer that is not its JSON document > the raw widget document: a plain Error naming the code, not a SyntaxErrorUnitpassnot runnot runnot run
a peer's answer with an error status > a page document that moves with 200, no redirect status: a 502, and the code saidUnitpassnot runnot runnot run
a peer's answer with an error status > a page document that moves with 300, no redirect status: a 502, and the code saidUnitpassnot runnot runnot run
a peer's answer with an error status > a page document that moves with 301: the move, as the peer said itUnitpassnot runnot runnot run
a peer's answer with an error status > a page document that moves with 302: the move, as the peer said itUnitpassnot runnot runnot run
a peer's answer with an error status > a page document that moves with 303: the move, as the peer said itUnitpassnot runnot runnot run
a peer's answer with an error status > a page document that moves with 304, no redirect status: a 502, and the code saidUnitpassnot runnot runnot run
a peer's answer with an error status > a page document that moves with 305, no redirect status: a 502, and the code saidUnitpassnot runnot runnot run
a peer's answer with an error status > a page document that moves with 307: the move, as the peer said itUnitpassnot runnot runnot run
a peer's answer with an error status > a page document that moves with 308: the move, as the peer said itUnitpassnot runnot runnot run
a peer's answer with an error status > a page document that moves with 399, no redirect status: a 502, and the code saidUnitpassnot runnot runnot run
a peer's answer with an error status > a page read the peer answers 404 with its document: the peer's own not-found pageUnitpassnot runnot runnot run
a peer's answer with an error status > a page read whose peer answers 500: a 502, and the code saidUnitpassnot runnot runnot run
a peer's answer with an error status > a page read whose peer is unavailable (503): the 503 passes throughUnitpassnot runnot runnot run
a peer's answer with an error status > a post whose peer answers 403: a 502, and the code saidUnitpassnot runnot runnot run
a peer's answer with an error status > a static widget the peer does not have (404): the boundary card, and the code saidUnitpassnot runnot runnot run
a peer's answer with an error status > a static widget whose peer answers 500: the boundary card in its place, and the code saidUnitpassnot runnot runnot run
packages/federation/test/peer-code-origins.test.ts
a peer fragment’s runtime origin > joins the request’s code origins when the fragment is usedUnitpassnot runnot runnot run
a peer fragment’s runtime origin > no runtime named: nothingUnitpassnot runnot runnot run
a peer fragment’s runtime origin > not from a runtime that is not an http(s) URLUnitpassnot runnot runnot run
a peer fragment’s runtime origin > not from an answer a redirect took to another originUnitpassnot runnot runnot run
packages/federation/test/peer-endpoints.test.ts
a region of the peer's own inside its fragment > a deferred widget: the island inside its answer asks the shell tooUnitpassnot runnot runnot run
a region of the peer's own inside its fragment > a redirected or failed answer is not the region's: the shell says so, never swaps it inUnitpassnot runnot runnot run
a region of the peer's own inside its fragment > a region tag written in a script or a comment is no tag: left as it cameUnitpassnot runnot runnot run
a region of the peer's own inside its fragment > a static widget: the server island asks the shell, which asks the peerUnitpassnot runnot runnot run
a region of the peer's own inside its fragment > an endpoint after a value holding > asks the shell tooUnitpassnot runnot runnot run
a region of the peer's own inside its fragment > an endpoint in single quotes asks the shell tooUnitpassnot runnot runnot run
a region of the peer's own inside its fragment > an endpoint on any other origin is not the peer's: it stays as it came (the runtime refuses it)Unitpassnot runnot runnot run
a region of the peer's own inside its fragment > an endpoint spaced, in upper case asks the shell tooUnitpassnot runnot runnot run
a region of the peer's own inside its fragment > an endpoint unquoted asks the shell tooUnitpassnot runnot runnot run
a region of the peer's own inside its fragment > an endpoint written inside another value is left as writtenUnitpassnot runnot runnot run
a region of the peer's own inside its fragment > an expired capability of the peer's is renewed by the peerUnitpassnot runnot runnot run
a region of the peer's own inside its fragment > the fragment pins its region endpoints to its originUnitpassnot runnot runnot run
a region of the peer's own inside its fragment > the peer's keep-fallback answer keeps the fallbackUnitpassnot runnot runnot run
a region of the peer's own inside its fragment > the shell forwards only to the peer: a hole naming another path is refusedUnitpassnot runnot runnot run
packages/federation/test/peer-failover.test.ts
region endpoint replicas > a target without its leading slash is refused before any origin is askedUnitpassnot runnot runnot run
region endpoint replicas > an origin that answers 500: the next is askedUnitpassnot runnot runnot run
region endpoint replicas > an origin that does not answer: the next is askedUnitpassnot runnot runnot run
replica failover on a server error > a mutation the first origin answers 503 is never sent to a replicaUnitpassnot runnot runnot run
replica failover on a server error > a page answer below 500 is the answer: the next origin is not askedUnitpassnot runnot runnot run
replica failover on a server error > a page read the first origin answers 500 is asked of the nextUnitpassnot runnot runnot run
replica failover on a server error > a page read the first origin answers 503 is asked of the nextUnitpassnot runnot runnot run
replica failover on a server error > a widget answer below 500 is the answer: the next origin is not askedUnitpassnot runnot runnot run
replica failover on a server error > a widget read the first origin answers 500 is asked of the nextUnitpassnot runnot runnot run
replica failover on a server error > a widget read the first origin answers 503 is asked of the nextUnitpassnot runnot runnot run
the document cache ttl > a copy exactly ttl old is stale: the read starts a refreshUnitpassnot runnot runnot run
packages/federation/test/peer-flights.test.ts
a peer read is one flight per key (#294) > a mutation while a read is out: the reader gets the page as it is after it#294Unitpassnot runnot runnot run
a peer read is one flight per key (#294) > a page whose sources move during every fetch of it: the read gives up with a 504 and the code said, and does not fetch it forever (#1792)#294Unitpassnot runnot runnot run
a peer read is one flight per key (#294) > a read that starts while a mutation is out: once the mutation ends, no read gets the page from before it#294Unitpassnot runnot runnot run
a peer read is one flight per key (#294) > a thaw of other tags keeps the fetch in flight: its answer is kept#294Unitpassnot runnot runnot run
a peer read is one flight per key (#294) > a thaw of the tags its answer carries: the waiting caller gets the page fetched again#294Unitpassnot runnot runnot run
packages/federation/test/peer-timeout.test.ts
a hop the peer never answers gives up after its timeout, on the realm's timersUnitpassnot runnot runnot run
packages/federation/test/peer-unreachable.test.ts
a hop the asking request ended itself > a mutation whose answer breaks off mid-body fails with that break, as it cameUnitpassnot runnot runnot run
a hop the asking request ended itself > a page read: the fetch ends unsaid, and no other origin is askedUnitpassnot runnot runnot run
a peer that gives no answer at all > a deferred widget's hole: a 504, and the code saidUnitpassnot runnot runnot run
a peer that gives no answer at all > a page read: a 504, and the code saidUnitpassnot runnot runnot run
a peer that gives no answer at all > a static widget: the boundary card in its place, and the code saidUnitpassnot runnot runnot run
packages/federation/test/property-peer-answer.test.ts
a peer answer that is JSON but not its document > {"css":"x","body":"b"}: a widget shows the card, a page read is a 502, and the code is saidUnitpassnot runnot runnot run
a peer answer that is JSON but not its document > {"error":"busy"}: a widget shows the card, a page read is a 502, and the code is saidUnitpassnot runnot runnot run
a peer answer that is JSON but not its document > {"html":5}: a widget shows the card, a page read is a 502, and the code is saidUnitpassnot runnot runnot run
a peer answer that is JSON but not its document > {"status":200,"title":"t","css":[],"body":"b","trace":{"trace_id":"a\r\nb","span_id":"c"}}: a widget shows the card, a page read is a 502, and the code is saidUnitpassnot runnot runnot run
a peer answer that is JSON but not its document > {}: a widget shows the card, a page read is a 502, and the code is saidUnitpassnot runnot runnot run
a peer answer that is JSON but not its document > any answer: a widget is a region, a page read a document or an HttpError, never a TypeErrorUnitpassnot runnot runnot run
a peer answer that is JSON but not its document > null: a widget shows the card, a page read is a 502, and the code is saidUnitpassnot runnot runnot run
packages/federation/test/property-thaw.test.ts
serve_thaw with any signed body > answers 200 for a notice of the notice’s shape and 400 for anything else, never throwsUnitpassnot runnot runnot run
packages/federation/test/property-wire.test.ts
a peer document > any graph text is pinned without a throw, and pinning twice is pinning onceUnitpassnot runnot runnot run
a peer document > its pinned island graph is JSON with no <Unitpassnot runnot runnot run
signed claims > read back as sentUnitpassnot runnot runnot run
signed claims > with the capability: one header it covers changed in any way is refused, never a throwUnitpassnot runnot runnot run
signed claims > with the legacy signature alone: one header it covers changed in any way is refused, never a throwUnitpassnot runnot runnot run
packages/federation/test/router-stream.test.ts
mount({ stream: true }) — the sugar > a COMPONENT fallback bakes as an inline region into the flushed partUnitpassnot runnot runnot run
mount({ stream: true }) — the sugar > a dead MFE yields the offline card AFTER the flush — first byte never waitedUnitpassnot runnot runnot run
mount({ stream: true }) — the sugar > a late redirect degrades to a link card (status already flushed)Unitpassnot runnot runnot run
mount({ stream: true }) — the sugar > a late redirect's target is escaped into the card's href (#439)#439Unitpassnot runnot runnot run
mount({ stream: true }) — the sugar > a mounted page's title is escaped once (#436)#436Unitpassnot runnot runnot run
mount({ stream: true }) — the sugar > a peer page not found yields the offline card, never the peer's not-found page inside the 200Unitpassnot runnot runnot run
mount({ stream: true }) — the sugar > fallback flushes; the doc (css+head+body) rides the late chunkUnitpassnot runnot runnot run
page(async function*) — the streamed slot > a region that cannot bake fails LOUDLY into the error card (never an empty chunk)Unitpassnot runnot runnot run
page(async function*) — the streamed slot > a throw AFTER the flush becomes an error-card chunk, page still closesUnitpassnot runnot runnot run
page(async function*) — the streamed slot > flushes the first yield, chunks the rest as templates, boots onceUnitpassnot runnot runnot run
page(async function*) — the streamed slot > non-GET buffers to the FINAL yield (actions need a whole answer)Unitpassnot runnot runnot run
page(async function*) — the streamed slot > yields REAL regions — async generators auto-await them, the resolved shapes must bakeUnitpassnot runnot runnot run
packages/federation/test/router-when.test.ts
mount(pick) — the flag-picked canary > a pick that yields a non-client throws loudly, naming the fixUnitpassnot runnot runnot run
mount(pick) — the flag-picked canary > a resolver function picks the peer for each requestUnitpassnot runnot runnot run
mount(pick) — the flag-picked canary > routes the hop through the picked client, stickily per visitorUnitpassnot runnot runnot run
when() — a gated-off route does not exist > endpoint: off → fall-through (null, no base); on via ?og-exp → servedUnitpassnot runnot runnot run
when() — a gated-off route does not exist > page under an owned base: off → 404 without ever touching the page (no network)Unitpassnot runnot runnot run
when() — a gated-off route does not exist > the gate decision self-registers for federation carry (like any flag read)Unitpassnot runnot runnot run
when() — a gated-off route does not exist > the gate is any (c) => boolean — a plain predicate worksUnitpassnot runnot runnot run
packages/federation/test/serve-claims.test.ts
verified visitor claims reach what the call asked for > a signed call with no claims is anonymousUnitpassnot runnot runnot run
verified visitor claims reach what the call asked for > a signed page call hands its claims to the exposed tableUnitpassnot runnot runnot run
verified visitor claims reach what the call asked for > a signed widget call hands its claims to the widgetUnitpassnot runnot runnot run
verified visitor claims reach what the call asked for > an unsigned call is refused before the table or widget runsUnitpassnot runnot runnot run
verified visitor claims reach what the call asked for > on an open app a raw x-og-user header is no identityUnitpassnot runnot runnot run
packages/federation/test/serve-expose.test.ts
an exposed table is asked on its own origin, whatever path the caller sent > a path without its leading slash gets one, on the app’s originUnitpassnot runnot runnot run
an exposed table is asked on its own origin, whatever path the caller sent > a plain path and query reach the table as sentUnitpassnot runnot runnot run
an exposed table is asked on its own origin, whatever path the caller sent > a search that is not a query string stays the queryUnitpassnot runnot runnot run
an exposed table is asked on its own origin, whatever path the caller sent > path "///other.example" is refused, and never reaches the tableUnitpassnot runnot runnot run
an exposed table is asked on its own origin, whatever path the caller sent > path "//other.example/me" is refused, and never reaches the tableUnitpassnot runnot runnot run
an exposed table is asked on its own origin, whatever path the caller sent > path "/\\other.example/me" is refused, and never reaches the tableUnitpassnot runnot runnot run
an exposed table is asked on its own origin, whatever path the caller sent > path "\\\\x" is refused, and never reaches the tableUnitpassnot runnot runnot run
packages/federation/test/shared-state.test.ts
SharedState membrane (devalue snapshot-on-write) > a proxy degrades to a plain snapshot (reactive wrappers never enter the store)Unitpassnot runnot runnot run
SharedState membrane (devalue snapshot-on-write) > functions and class instances THROW loudly at the write siteUnitpassnot runnot runnot run
SharedState membrane (devalue snapshot-on-write) > plain data round-trips, devalue vocabulary includedUnitpassnot runnot runnot run
SharedState membrane (devalue snapshot-on-write) > the vanilla door enforces the same membraneUnitpassnot runnot runnot run
SharedState membrane (devalue snapshot-on-write) > writes are SNAPSHOTS — later mutation of the source object does not leak inUnitpassnot runnot runnot run
packages/federation/test/sim-deploy-thaw.test.ts
the deploy thaw, simulated > reaches every peer once the store and the peers are back, sent once to eachUnitpassnot runnot runnot run
packages/federation/test/sim-peer.test.ts
a federation peer, simulated > fetches each page once per thaw, and never serves a page from before what it sawUnitpassnot runnot runnot run
packages/federation/test/sim-thaw.test.ts
a thaw notice arriving, simulated > is answered done only once applied, applied once, and passed on only thenUnitpassnot runnot runnot run
packages/federation/test/thaw-hop-cap.test.ts
the thaw hop cap > hop 3 is still passed on; hop 4 is notUnitpassnot runnot runnot run
packages/federation/test/thaw-notice-shape.test.ts
a thaw notice not of the notice’s shape (#988) > a key under `__proto__` is no key: `tags: "all"` there thaws nothing#988Unitpassnot runnot runnot run
a thaw notice not of the notice’s shape (#988) > a notice of the shape is still applied and passed on#988Unitpassnot runnot runnot run
a thaw notice not of the notice’s shape (#988) > is refused with a 400, applies nothing, and is passed on to no one#988Unitpassnot runnot runnot run
packages/federation/test/thaw-receive.test.ts
a notice id past its keep > is forgotten after 10 minutes: the same notice again is applied againUnitpassnot runnot runnot run
a thaw notice whose evict fails (#287) > answers an error and keeps no id; the retry with the same id is applied#287Unitpassnot runnot runnot run
two copies of a notice at once (the sender tried again while the first applied) > applies it once, and passes it on onceUnitpassnot runnot runnot run
packages/federation/test/thaw-send.test.ts
a peer that never answers a thaw notice > is given up on after 5 seconds a try, then tried againUnitpassnot runnot runnot run
a publish on a serverless platform (#286) > hands the thaw broadcast to the request's waitUntil, which holds until a peer took it#286Unitpassnot runnot runnot run
a thaw notice no peer took > is said with the peers that missed it, once the retries are spentUnitpassnot runnot runnot run
packages/federation/test/trace-random-port.test.ts
a new trace's ids are drawn from the realm's randomnessUnitpassnot runnot runnot run
packages/federation/test/vite.test.ts
federation() > inlines @ogygia/router in the server build, as it ships .svelte files, even when the app does not list router()Unitpassnot runnot runnot run