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}`.
38 lines
710 B
Plaintext
38 lines
710 B
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`single-slot mounting (declare + renderSlot) > folds class hashes and collapses svg internals in snapshots, leaving the live DOM alone 1`] = `
|
|
<div
|
|
data-slot="trt.panel"
|
|
>
|
|
<div
|
|
class="frame plain"
|
|
>
|
|
<span
|
|
class="label"
|
|
>
|
|
styled
|
|
</span>
|
|
<svg
|
|
aria-hidden="true"
|
|
data-content="2bfa09dc"
|
|
viewBox="0 0 16 16"
|
|
/>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`single-slot mounting edge arms > serializes childless svg untouched next to scoped classes 1`] = `
|
|
<div
|
|
data-slot="trt.panel"
|
|
>
|
|
<div
|
|
class="frame"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
viewBox="0 0 1 1"
|
|
/>
|
|
</div>
|
|
</div>
|
|
`;
|