A test file under packages/client now says which face it covers:
`*.client.spec.{ts,tsx}` and its `*.client.{ts,tsx}` helpers belong to the
Client aggregate, `*.host.spec.ts` to the host aggregate. The carrier's four
node-half specs take the Host suffix.
The two suffixes are mutually exclusive, so each aggregate excludes the
other's and both keep one broad test glob: `exclude` wins over `include`, and
`packages/client/**` no longer has to be excluded wholesale from the host
program with per-file `files` entries carved back out of it. A Host-face spec
that reaches only Host source therefore needs no cross-face project
reference, which the split-project rule rejects.
vitest still discovers every file through `**/*.spec.{ts,tsx}`.
202 lines
4.0 KiB
Plaintext
202 lines
4.0 KiB
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`sidebar shell snapshots > renders the collapsed rail after the crossfade settles, in place 1`] = `
|
|
<div
|
|
data-slot="sidebar"
|
|
>
|
|
<div
|
|
class="root collapsed railIn quietBars"
|
|
style=""
|
|
>
|
|
<div
|
|
class="logoRow"
|
|
>
|
|
<button
|
|
aria-label="Open sidebar"
|
|
class="iconButton toggle"
|
|
type="button"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="railFish"
|
|
data-content="965fe321"
|
|
fill="none"
|
|
height="17.6580310880829"
|
|
viewBox="0 0 23.16 17.04"
|
|
width="24"
|
|
/>
|
|
<svg
|
|
class="panelIcon"
|
|
data-content="35f95b0c"
|
|
fill="none"
|
|
height="18"
|
|
viewBox="0 0 16 16"
|
|
width="18"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
/>
|
|
</button>
|
|
</div>
|
|
<button
|
|
aria-label="New session"
|
|
class="newSession"
|
|
type="button"
|
|
>
|
|
<svg
|
|
data-content="c0ce4dcc"
|
|
fill="none"
|
|
height="18"
|
|
viewBox="0 0 16 16"
|
|
width="18"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
/>
|
|
</button>
|
|
<div
|
|
class="regionArea"
|
|
/>
|
|
<div
|
|
class="footArea"
|
|
/>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`sidebar shell snapshots > renders the expanded column (wordmark, capsule, empty holes) 1`] = `
|
|
<div
|
|
data-slot="sidebar"
|
|
>
|
|
<div
|
|
class="root quietBars"
|
|
style="width: 300px;"
|
|
>
|
|
<div
|
|
class="logoRow"
|
|
>
|
|
<button
|
|
aria-label="New session"
|
|
class="brand wide"
|
|
type="button"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
data-content="951274b9"
|
|
fill="none"
|
|
height="24"
|
|
viewBox="0 0 182 24"
|
|
width="182"
|
|
/>
|
|
</button>
|
|
<button
|
|
aria-label="Collapse sidebar"
|
|
class="iconButton toggle"
|
|
type="button"
|
|
>
|
|
<svg
|
|
class="panelIcon"
|
|
data-content="35f95b0c"
|
|
fill="none"
|
|
height="16"
|
|
viewBox="0 0 16 16"
|
|
width="16"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
/>
|
|
</button>
|
|
</div>
|
|
<button
|
|
aria-label="New session"
|
|
class="newSession"
|
|
type="button"
|
|
>
|
|
<svg
|
|
data-content="c0ce4dcc"
|
|
fill="none"
|
|
height="14"
|
|
viewBox="0 0 16 16"
|
|
width="14"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
/>
|
|
<span
|
|
class="newSessionLabel wide"
|
|
>
|
|
New Session
|
|
</span>
|
|
</button>
|
|
<div
|
|
class="regionArea"
|
|
/>
|
|
<div
|
|
class="footArea"
|
|
/>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`sidebar shell snapshots > renders the expanded column in the default locale (zh, no setLocale) 1`] = `
|
|
<div
|
|
data-slot="sidebar"
|
|
>
|
|
<div
|
|
class="root quietBars"
|
|
style="width: 300px;"
|
|
>
|
|
<div
|
|
class="logoRow"
|
|
>
|
|
<button
|
|
aria-label="新建会话"
|
|
class="brand wide"
|
|
type="button"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
data-content="951274b9"
|
|
fill="none"
|
|
height="24"
|
|
viewBox="0 0 182 24"
|
|
width="182"
|
|
/>
|
|
</button>
|
|
<button
|
|
aria-label="收起侧边栏"
|
|
class="iconButton toggle"
|
|
type="button"
|
|
>
|
|
<svg
|
|
class="panelIcon"
|
|
data-content="35f95b0c"
|
|
fill="none"
|
|
height="16"
|
|
viewBox="0 0 16 16"
|
|
width="16"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
/>
|
|
</button>
|
|
</div>
|
|
<button
|
|
aria-label="新建会话"
|
|
class="newSession"
|
|
type="button"
|
|
>
|
|
<svg
|
|
data-content="c0ce4dcc"
|
|
fill="none"
|
|
height="14"
|
|
viewBox="0 0 16 16"
|
|
width="14"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
/>
|
|
<span
|
|
class="newSessionLabel wide"
|
|
>
|
|
新会话
|
|
</span>
|
|
</button>
|
|
<div
|
|
class="regionArea"
|
|
/>
|
|
<div
|
|
class="footArea"
|
|
/>
|
|
</div>
|
|
</div>
|
|
`;
|