@delacour/react-native-ui 0.6.0-alpha.20261103164139 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -7
- package/src/components/accordion/AGENTS.md +1 -0
- package/src/components/accordion/accordion.render.test.tsx +330 -0
- package/src/components/alert/AGENTS.md +1 -0
- package/src/components/alert/alert.render.test.tsx +162 -0
- package/src/components/animated-badge/AGENTS.md +1 -0
- package/src/components/animated-badge/animated-badge.render.test.tsx +136 -0
- package/src/components/attachment/AGENTS.md +1 -0
- package/src/components/attachment/attachment.render.test.tsx +422 -0
- package/src/components/avatar/AGENTS.md +1 -0
- package/src/components/avatar/avatar.render.test.tsx +353 -0
- package/src/components/badge/AGENTS.md +1 -0
- package/src/components/badge/badge.render.test.tsx +216 -0
- package/src/components/bottom-sheet/AGENTS.md +1 -0
- package/src/components/bottom-sheet/bottom-sheet.render.test.tsx +190 -0
- package/src/components/breadcrumb/AGENTS.md +1 -0
- package/src/components/breadcrumb/breadcrumb.render.test.tsx +324 -0
- package/src/components/button/AGENTS.md +1 -0
- package/src/components/button/button.render.test.tsx +67 -0
- package/src/components/calendar/AGENTS.md +1 -0
- package/src/components/calendar/calendar.render.test.tsx +388 -0
- package/src/components/card/AGENTS.md +1 -0
- package/src/components/card/card.render.test.tsx +287 -0
- package/src/components/carousel/AGENTS.md +3 -0
- package/src/components/carousel/carousel-content.tsx +3 -1
- package/src/components/carousel/carousel.render.test.tsx +356 -0
- package/src/components/chart/AGENTS.md +1 -0
- package/src/components/chart/chart.render.test.tsx +443 -0
- package/src/components/checkbox/AGENTS.md +2 -0
- package/src/components/checkbox/checkbox.render.test.tsx +250 -0
- package/src/components/checkbox/checkbox.tsx +2 -1
- package/src/components/chip/chip.render.test.tsx +277 -0
- package/src/components/circular-text/AGENTS.md +1 -0
- package/src/components/circular-text/circular-text.render.test.tsx +154 -0
- package/src/components/collapsible/AGENTS.md +1 -0
- package/src/components/collapsible/collapsible.render.test.tsx +243 -0
- package/src/components/color-picker/AGENTS.md +1 -0
- package/src/components/color-picker/color-picker.render.test.tsx +347 -0
- package/src/components/combobox/AGENTS.md +1 -0
- package/src/components/combobox/combobox.render.test.tsx +464 -0
- package/src/components/compare/AGENTS.md +1 -0
- package/src/components/compare/compare.render.test.tsx +265 -0
- package/src/components/context-menu/AGENTS.md +1 -0
- package/src/components/context-menu/context-menu.render.test.tsx +183 -0
- package/src/components/countdown/AGENTS.md +1 -0
- package/src/components/countdown/countdown.render.test.tsx +194 -0
- package/src/components/date-picker/AGENTS.md +1 -0
- package/src/components/date-picker/date-picker.render.test.tsx +378 -0
- package/src/components/date-time-picker/AGENTS.md +1 -0
- package/src/components/date-time-picker/date-time-picker.render.test.tsx +356 -0
- package/src/components/dialog/AGENTS.md +1 -0
- package/src/components/dialog/dialog.render.test.tsx +67 -0
- package/src/components/direction/AGENTS.md +1 -0
- package/src/components/direction/direction.render.test.tsx +150 -0
- package/src/components/drawer/AGENTS.md +1 -0
- package/src/components/drawer/drawer.render.test.tsx +340 -0
- package/src/components/empty-state/AGENTS.md +1 -0
- package/src/components/empty-state/empty-state.render.test.tsx +134 -0
- package/src/components/fab/AGENTS.md +1 -0
- package/src/components/fab/fab.render.test.tsx +278 -0
- package/src/components/feedback/AGENTS.md +1 -0
- package/src/components/feedback/feedback.render.test.tsx +257 -0
- package/src/components/field/AGENTS.md +1 -0
- package/src/components/field/field.render.test.tsx +361 -0
- package/src/components/flip-card/AGENTS.md +1 -0
- package/src/components/flip-card/flip-card.render.test.tsx +259 -0
- package/src/components/flow/AGENTS.md +1 -0
- package/src/components/flow/flow.render.test.tsx +354 -0
- package/src/components/frame/AGENTS.md +1 -0
- package/src/components/frame/frame.render.test.tsx +273 -0
- package/src/components/grid-item/AGENTS.md +1 -0
- package/src/components/grid-item/grid-item.render.test.tsx +326 -0
- package/src/components/icon/AGENTS.md +1 -0
- package/src/components/icon/icon.render.test.tsx +110 -0
- package/src/components/image-viewer/AGENTS.md +5 -0
- package/src/components/image-viewer/image-viewer.render.test.tsx +244 -0
- package/src/components/image-viewer/image-viewer.tsx +6 -3
- package/src/components/input/AGENTS.md +1 -0
- package/src/components/input/input.render.test.tsx +246 -0
- package/src/components/item/AGENTS.md +1 -0
- package/src/components/item/item.render.test.tsx +276 -0
- package/src/components/kpi/AGENTS.md +1 -0
- package/src/components/kpi/kpi.render.test.tsx +232 -0
- package/src/components/label/AGENTS.md +1 -0
- package/src/components/label/label.render.test.tsx +81 -0
- package/src/components/leaderboard/AGENTS.md +1 -0
- package/src/components/leaderboard/leaderboard.render.test.tsx +198 -0
- package/src/components/list-group/AGENTS.md +1 -0
- package/src/components/list-group/list-group.render.test.tsx +279 -0
- package/src/components/map/AGENTS.md +1 -0
- package/src/components/map/map.render.test.tsx +460 -0
- package/src/components/markdown-editor/AGENTS.md +1 -0
- package/src/components/markdown-editor/markdown-editor.render.test.tsx +461 -0
- package/src/components/marker/AGENTS.md +1 -0
- package/src/components/marker/marker.render.test.tsx +232 -0
- package/src/components/marquee/AGENTS.md +1 -0
- package/src/components/marquee/marquee.render.test.tsx +145 -0
- package/src/components/menu/AGENTS.md +2 -0
- package/src/components/menu/menu-item.tsx +40 -1
- package/src/components/menu/menu.render.test.tsx +449 -0
- package/src/components/message/AGENTS.md +1 -0
- package/src/components/message/message.render.test.tsx +401 -0
- package/src/components/message-scroller/AGENTS.md +1 -0
- package/src/components/message-scroller/message-scroller.render.test.tsx +295 -0
- package/src/components/meter/AGENTS.md +1 -0
- package/src/components/meter/meter.render.test.tsx +249 -0
- package/src/components/number-input/AGENTS.md +2 -0
- package/src/components/number-input/number-input-field.tsx +3 -2
- package/src/components/number-input/number-input.render.test.tsx +426 -0
- package/src/components/otp-input/AGENTS.md +3 -0
- package/src/components/otp-input/otp-input.render.test.tsx +405 -0
- package/src/components/otp-input/otp-input.tsx +9 -2
- package/src/components/overlay/AGENTS.md +7 -1
- package/src/components/overlay/overlay-teleport.ts +21 -0
- package/src/components/overlay/overlay.render.test.tsx +367 -0
- package/src/components/overlay/overlay.tsx +5 -2
- package/src/components/page-header/AGENTS.md +1 -0
- package/src/components/page-header/page-header.render.test.tsx +217 -0
- package/src/components/pagination/AGENTS.md +1 -0
- package/src/components/pagination/pagination.render.test.tsx +293 -0
- package/src/components/planner/AGENTS.md +1 -0
- package/src/components/planner/planner.render.test.tsx +429 -0
- package/src/components/popover/AGENTS.md +1 -0
- package/src/components/popover/popover.render.test.tsx +206 -0
- package/src/components/post/AGENTS.md +4 -0
- package/src/components/post/post-author.tsx +8 -1
- package/src/components/post/post-community.tsx +7 -1
- package/src/components/post/post.render.test.tsx +456 -0
- package/src/components/pressable/AGENTS.md +7 -0
- package/src/components/pressable/pressable.render.test.tsx +183 -0
- package/src/components/pressable/pressable.tsx +1 -1
- package/src/components/progress/AGENTS.md +1 -0
- package/src/components/progress/progress.render.test.tsx +192 -0
- package/src/components/progress-button/AGENTS.md +1 -0
- package/src/components/progress-button/progress-button.render.test.tsx +251 -0
- package/src/components/provider/AGENTS.md +1 -0
- package/src/components/provider/provider.render.test.tsx +101 -0
- package/src/components/qr-code/AGENTS.md +1 -0
- package/src/components/qr-code/qr-code.render.test.tsx +117 -0
- package/src/components/questionnaire/AGENTS.md +1 -0
- package/src/components/questionnaire/questionnaire.render.test.tsx +549 -0
- package/src/components/radio/AGENTS.md +1 -0
- package/src/components/radio/radio.render.test.tsx +334 -0
- package/src/components/rating/AGENTS.md +5 -0
- package/src/components/rating/rating-stars.tsx +4 -0
- package/src/components/rating/rating.render.test.tsx +402 -0
- package/src/components/screen/AGENTS.md +9 -0
- package/src/components/screen/screen-error.tsx +3 -1
- package/src/components/screen/screen-navbar-title.tsx +6 -1
- package/src/components/screen/screen.render.test.tsx +309 -0
- package/src/components/scroll-blur/AGENTS.md +1 -0
- package/src/components/scroll-blur/scroll-blur.render.test.tsx +197 -0
- package/src/components/scroll-canvas/AGENTS.md +1 -0
- package/src/components/scroll-canvas/scroll-canvas.render.test.tsx +184 -0
- package/src/components/scroll-fade/AGENTS.md +1 -0
- package/src/components/scroll-fade/scroll-fade-edge.tsx +1 -0
- package/src/components/scroll-fade/scroll-fade.render.test.tsx +122 -0
- package/src/components/scroll-header/AGENTS.md +1 -0
- package/src/components/scroll-header/scroll-header.render.test.tsx +168 -0
- package/src/components/scroll-text/AGENTS.md +1 -0
- package/src/components/scroll-text/scroll-text.render.test.tsx +191 -0
- package/src/components/search-bar/AGENTS.md +1 -0
- package/src/components/search-bar/search-bar.render.test.tsx +377 -0
- package/src/components/section-progress/AGENTS.md +1 -0
- package/src/components/section-progress/section-progress.render.test.tsx +186 -0
- package/src/components/section-rail/AGENTS.md +1 -0
- package/src/components/section-rail/section-rail.render.test.tsx +341 -0
- package/src/components/select/AGENTS.md +1 -0
- package/src/components/select/select.render.test.tsx +466 -0
- package/src/components/selection-mode/AGENTS.md +1 -0
- package/src/components/selection-mode/selection-mode.render.test.tsx +487 -0
- package/src/components/separator/AGENTS.md +1 -0
- package/src/components/separator/separator.render.test.tsx +43 -0
- package/src/components/signature/AGENTS.md +4 -0
- package/src/components/signature/signature-pad.tsx +4 -0
- package/src/components/signature/signature.render.test.tsx +257 -0
- package/src/components/skeleton/AGENTS.md +2 -1
- package/src/components/skeleton/skeleton.render.test.tsx +222 -0
- package/src/components/sketch/AGENTS.md +2 -0
- package/src/components/sketch/sketch-canvas.tsx +4 -0
- package/src/components/sketch/sketch.render.test.tsx +527 -0
- package/src/components/slide-button/AGENTS.md +2 -0
- package/src/components/slide-button/slide-button.render.test.tsx +354 -0
- package/src/components/slide-button/slide-button.tsx +4 -0
- package/src/components/slider/AGENTS.md +12 -0
- package/src/components/slider/slider-thumb.tsx +2 -1
- package/src/components/slider/slider-track.tsx +4 -1
- package/src/components/slider/slider.render.test.tsx +254 -0
- package/src/components/slider/slider.tsx +11 -0
- package/src/components/sortable/AGENTS.md +2 -0
- package/src/components/sortable/sortable-item.tsx +2 -1
- package/src/components/sortable/sortable.render.test.tsx +204 -0
- package/src/components/spinner/AGENTS.md +3 -0
- package/src/components/spinner/spinner.render.test.tsx +88 -0
- package/src/components/spinner/spinner.tsx +1 -0
- package/src/components/split-view/AGENTS.md +1 -0
- package/src/components/split-view/split-view-drag-area.tsx +2 -0
- package/src/components/split-view/split-view.render.test.tsx +423 -0
- package/src/components/splitter/AGENTS.md +7 -0
- package/src/components/splitter/splitter-handle.tsx +2 -0
- package/src/components/splitter/splitter.render.test.tsx +307 -0
- package/src/components/stack-card/AGENTS.md +3 -0
- package/src/components/stack-card/stack-card.render.test.tsx +309 -0
- package/src/components/stack-card/stack-card.tsx +1 -1
- package/src/components/steps/AGENTS.md +1 -0
- package/src/components/steps/steps.render.test.tsx +318 -0
- package/src/components/support/AGENTS.md +1 -0
- package/src/components/support/support.render.test.tsx +331 -0
- package/src/components/surface/AGENTS.md +1 -0
- package/src/components/surface/surface.render.test.tsx +129 -0
- package/src/components/swipe/AGENTS.md +3 -0
- package/src/components/swipe/swipe.render.test.tsx +280 -0
- package/src/components/swipe/swipe.tsx +7 -4
- package/src/components/switch/AGENTS.md +5 -0
- package/src/components/switch/switch.render.test.tsx +46 -0
- package/src/components/switch/switch.tsx +5 -1
- package/src/components/table/AGENTS.md +1 -0
- package/src/components/table/table.render.test.tsx +294 -0
- package/src/components/tabs/AGENTS.md +6 -0
- package/src/components/tabs/tabs.render.test.tsx +325 -0
- package/src/components/tabs/tabs.tsx +12 -1
- package/src/components/tag-input/AGENTS.md +1 -0
- package/src/components/tag-input/tag-input.render.test.tsx +655 -0
- package/src/components/text/AGENTS.md +1 -0
- package/src/components/text/text.render.test.tsx +197 -0
- package/src/components/text-animation/AGENTS.md +1 -0
- package/src/components/text-animation/text-animation.render.test.tsx +283 -0
- package/src/components/textarea/AGENTS.md +1 -0
- package/src/components/textarea/textarea.render.test.tsx +192 -0
- package/src/components/theme-selector/AGENTS.md +1 -0
- package/src/components/theme-selector/theme-selector.render.test.tsx +196 -0
- package/src/components/time-picker/AGENTS.md +1 -0
- package/src/components/time-picker/time-picker.render.test.tsx +466 -0
- package/src/components/timeline/AGENTS.md +1 -0
- package/src/components/timeline/timeline.render.test.tsx +316 -0
- package/src/components/toast/AGENTS.md +1 -0
- package/src/components/toast/toast.render.test.tsx +245 -0
- package/src/components/toggle-button/AGENTS.md +1 -0
- package/src/components/toggle-button/toggle-button.render.test.tsx +392 -0
- package/src/components/tooltip/AGENTS.md +1 -0
- package/src/components/tooltip/tooltip.render.test.tsx +231 -0
- package/src/components/tour/AGENTS.md +1 -0
- package/src/components/tour/tour.render.test.tsx +217 -0
- package/src/components/tree/AGENTS.md +1 -0
- package/src/components/tree/tree.render.test.tsx +395 -0
- package/src/display-name.test.ts +9 -3
- package/src/render-tests.test.ts +27 -0
- package/src/test/AGENTS.md +121 -0
- package/src/test/render.tsx +22 -0
- package/src/test/setup.ts +142 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { describe, expect, jest, test } from "@jest/globals";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import { fireEvent, renderWithProviders, screen } from "../../test/render";
|
|
4
|
+
import { SectionProgress, type SectionProgressProps } from "./section-progress";
|
|
5
|
+
import { SectionProgressItem } from "./section-progress-item";
|
|
6
|
+
|
|
7
|
+
// Not testable under Jest: the ring fill (Skia is stubbed), the label slide/resize, the panel grow
|
|
8
|
+
// and the reveal latch (all UI-thread worklets), the screen-reader focus jump and the Android
|
|
9
|
+
// back handler's real hardware path. Items stay mounted while closed, hidden from assistive
|
|
10
|
+
// technology, so item queries pass `includeHiddenElements`.
|
|
11
|
+
|
|
12
|
+
type Props = Partial<Omit<SectionProgressProps, "children">>;
|
|
13
|
+
|
|
14
|
+
function Pill(props: Props): ReactElement {
|
|
15
|
+
return (
|
|
16
|
+
<SectionProgress {...props}>
|
|
17
|
+
<SectionProgress.Item value="intro">Introduction</SectionProgress.Item>
|
|
18
|
+
<SectionProgress.Item value="pricing" color="success">
|
|
19
|
+
Pricing
|
|
20
|
+
</SectionProgress.Item>
|
|
21
|
+
<SectionProgress.Item value="faq">FAQ</SectionProgress.Item>
|
|
22
|
+
</SectionProgress>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const hidden = { includeHiddenElements: true } as const;
|
|
27
|
+
const pill = () => screen.getByRole("button", { name: "Sections" });
|
|
28
|
+
const item = (name: string) => screen.getByRole("button", { name, ...hidden });
|
|
29
|
+
const activate = (element: ReturnType<typeof item>) => fireEvent(element, "accessibilityTap");
|
|
30
|
+
|
|
31
|
+
describe("SectionProgress", () => {
|
|
32
|
+
test("renders the pill as a collapsed button named Sections", async () => {
|
|
33
|
+
await renderWithProviders(<Pill defaultValue="intro" />);
|
|
34
|
+
expect(pill()).toBeOnTheScreen();
|
|
35
|
+
expect(pill()).toBeCollapsed();
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
test("the pill's value announces the active section and percent", async () => {
|
|
39
|
+
await renderWithProviders(<Pill defaultValue="pricing" />);
|
|
40
|
+
expect(pill()).toHaveAccessibilityValue({ text: "Pricing, 0 percent" });
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
test("accessibilityLabel renames the pill", async () => {
|
|
44
|
+
await renderWithProviders(<Pill accessibilityLabel="Chapters" defaultValue="intro" />);
|
|
45
|
+
expect(screen.getByRole("button", { name: "Chapters" })).toBeOnTheScreen();
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
test("the pill shows the active section's title beside the listed one", async () => {
|
|
49
|
+
await renderWithProviders(<Pill defaultValue="faq" />);
|
|
50
|
+
expect(screen.getAllByText("FAQ", hidden)).toHaveLength(2);
|
|
51
|
+
expect(screen.getAllByText("Pricing", hidden)).toHaveLength(1);
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
test("the pill toggles the panel and reports onOpenChange", async () => {
|
|
55
|
+
const onOpenChange = jest.fn();
|
|
56
|
+
await renderWithProviders(<Pill defaultValue="intro" onOpenChange={onOpenChange} />);
|
|
57
|
+
|
|
58
|
+
await activate(pill());
|
|
59
|
+
expect(pill()).toBeExpanded();
|
|
60
|
+
expect(onOpenChange).toHaveBeenLastCalledWith(true);
|
|
61
|
+
|
|
62
|
+
await activate(pill());
|
|
63
|
+
expect(pill()).toBeCollapsed();
|
|
64
|
+
expect(onOpenChange).toHaveBeenLastCalledWith(false);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
test("defaultOpen starts the panel open", async () => {
|
|
68
|
+
await renderWithProviders(<Pill defaultOpen defaultValue="intro" />);
|
|
69
|
+
expect(pill()).toBeExpanded();
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
test("controlled isOpen waits for the prop", async () => {
|
|
73
|
+
const onOpenChange = jest.fn();
|
|
74
|
+
const { rerender } = await renderWithProviders(<Pill isOpen={false} onOpenChange={onOpenChange} />);
|
|
75
|
+
|
|
76
|
+
await activate(pill());
|
|
77
|
+
expect(onOpenChange).toHaveBeenCalledWith(true);
|
|
78
|
+
expect(pill()).toBeCollapsed();
|
|
79
|
+
|
|
80
|
+
await rerender(<Pill isOpen onOpenChange={onOpenChange} />);
|
|
81
|
+
expect(pill()).toBeExpanded();
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
test("every item is listed, and the active one is selected", async () => {
|
|
85
|
+
await renderWithProviders(<Pill defaultOpen defaultValue="pricing" />);
|
|
86
|
+
expect(item("Introduction")).not.toBeSelected();
|
|
87
|
+
expect(item("Pricing")).toBeSelected();
|
|
88
|
+
expect(item("FAQ")).not.toBeSelected();
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
test("with no active section no item is selected", async () => {
|
|
92
|
+
await renderWithProviders(<Pill defaultOpen />);
|
|
93
|
+
expect(item("Introduction")).not.toBeSelected();
|
|
94
|
+
expect(item("Pricing")).not.toBeSelected();
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
test("picking an item emits it, selects it and closes the panel (uncontrolled)", async () => {
|
|
98
|
+
const onValueChange = jest.fn();
|
|
99
|
+
const onOpenChange = jest.fn();
|
|
100
|
+
await renderWithProviders(
|
|
101
|
+
<Pill defaultOpen defaultValue="intro" onOpenChange={onOpenChange} onValueChange={onValueChange} />
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
await activate(item("FAQ"));
|
|
105
|
+
expect(onValueChange).toHaveBeenCalledTimes(1);
|
|
106
|
+
expect(onValueChange).toHaveBeenCalledWith("faq");
|
|
107
|
+
expect(onOpenChange).toHaveBeenLastCalledWith(false);
|
|
108
|
+
expect(pill()).toBeCollapsed();
|
|
109
|
+
expect(item("FAQ")).toBeSelected();
|
|
110
|
+
expect(item("Introduction")).not.toBeSelected();
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
test("controlled value reports the pick and waits for the prop", async () => {
|
|
114
|
+
const onValueChange = jest.fn();
|
|
115
|
+
const { rerender } = await renderWithProviders(<Pill defaultOpen onValueChange={onValueChange} value="intro" />);
|
|
116
|
+
|
|
117
|
+
await activate(item("Pricing"));
|
|
118
|
+
expect(onValueChange).toHaveBeenCalledWith("pricing");
|
|
119
|
+
expect(item("Introduction")).toBeSelected();
|
|
120
|
+
expect(item("Pricing")).not.toBeSelected();
|
|
121
|
+
|
|
122
|
+
await rerender(<Pill defaultOpen onValueChange={onValueChange} value="pricing" />);
|
|
123
|
+
expect(item("Pricing")).toBeSelected();
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
test("a controlled value of undefined stays controlled and means none yet", async () => {
|
|
127
|
+
const onValueChange = jest.fn();
|
|
128
|
+
const { rerender } = await renderWithProviders(
|
|
129
|
+
<Pill defaultOpen onValueChange={onValueChange} value={undefined} />
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
await activate(item("Pricing"));
|
|
133
|
+
expect(onValueChange).toHaveBeenCalledWith("pricing");
|
|
134
|
+
expect(item("Pricing")).not.toBeSelected();
|
|
135
|
+
|
|
136
|
+
await rerender(<Pill defaultOpen onValueChange={onValueChange} value="pricing" />);
|
|
137
|
+
expect(item("Pricing")).toBeSelected();
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
test("an item's own onPress also fires", async () => {
|
|
141
|
+
const onPress = jest.fn();
|
|
142
|
+
await renderWithProviders(
|
|
143
|
+
<SectionProgress defaultOpen defaultValue="a">
|
|
144
|
+
<SectionProgress.Item onPress={onPress} value="a">
|
|
145
|
+
Alpha
|
|
146
|
+
</SectionProgress.Item>
|
|
147
|
+
</SectionProgress>
|
|
148
|
+
);
|
|
149
|
+
await activate(item("Alpha"));
|
|
150
|
+
expect(onPress).toHaveBeenCalledTimes(1);
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
test("a disabled item neither emits nor closes the panel", async () => {
|
|
154
|
+
const onValueChange = jest.fn();
|
|
155
|
+
await renderWithProviders(
|
|
156
|
+
<SectionProgress defaultOpen defaultValue="a" onValueChange={onValueChange}>
|
|
157
|
+
<SectionProgress.Item value="a">Alpha</SectionProgress.Item>
|
|
158
|
+
<SectionProgress.Item disabled value="b">
|
|
159
|
+
Beta
|
|
160
|
+
</SectionProgress.Item>
|
|
161
|
+
</SectionProgress>
|
|
162
|
+
);
|
|
163
|
+
expect(item("Beta")).toBeDisabled();
|
|
164
|
+
await activate(item("Beta"));
|
|
165
|
+
expect(onValueChange).not.toHaveBeenCalled();
|
|
166
|
+
expect(pill()).toBeExpanded();
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
test("tracks a changing controlled value on the pill", async () => {
|
|
170
|
+
const { rerender } = await renderWithProviders(<Pill value="intro" />);
|
|
171
|
+
await rerender(<Pill value="pricing" />);
|
|
172
|
+
expect(pill()).toHaveAccessibilityValue({ text: "Pricing, 0 percent" });
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
test("an item outside a SectionProgress throws its documented error", async () => {
|
|
176
|
+
const original = console.error;
|
|
177
|
+
console.error = () => {};
|
|
178
|
+
try {
|
|
179
|
+
await expect(renderWithProviders(<SectionProgressItem value="x">X</SectionProgressItem>)).rejects.toThrow(
|
|
180
|
+
"SectionProgress.Item must be rendered inside a <SectionProgress>."
|
|
181
|
+
);
|
|
182
|
+
} finally {
|
|
183
|
+
console.error = original;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
});
|
|
@@ -22,6 +22,7 @@ and `onValueChange={sections.scrollTo}`.
|
|
|
22
22
|
| `section-rail-scrim.tsx` | The transparent outside-tap layer — internal |
|
|
23
23
|
| `section-rail.context.tsx` | The context, `useSectionRail`, and the part guard |
|
|
24
24
|
| `section-rail.variants.ts` | Pure `tv()` slots + every resolver, no RN imports |
|
|
25
|
+
| `section-rail.render.test.tsx` | Mounted under Jest — the adjustable trigger (value, expanded, increment/decrement/activate), controlled and uncontrolled value and open, row picks and the `closeDelay` linger, `value={undefined}`, the escape gesture, part guards. Touch, scrub and outside-tap run through Gesture Handler and are not reachable from Jest |
|
|
25
26
|
| `section-rail.variants.test.ts` | |
|
|
26
27
|
|
|
27
28
|
## Design
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import { afterEach, beforeEach, describe, expect, jest, test } from "@jest/globals";
|
|
2
|
+
import { act, fireEvent, renderWithProviders, screen } from "../../test/render";
|
|
3
|
+
import { SectionRail, type SectionRailProps } from "./section-rail";
|
|
4
|
+
|
|
5
|
+
const SECTIONS = [
|
|
6
|
+
{ id: "overview", title: "Overview", level: 0 },
|
|
7
|
+
{ id: "pricing", title: "Pricing", level: 0 },
|
|
8
|
+
{ id: "details", title: "Pricing details", level: 1 },
|
|
9
|
+
] as const;
|
|
10
|
+
|
|
11
|
+
function Rail(props: Omit<SectionRailProps, "children">) {
|
|
12
|
+
return (
|
|
13
|
+
<SectionRail {...props}>
|
|
14
|
+
<SectionRail.Trigger>
|
|
15
|
+
{SECTIONS.map((section) => (
|
|
16
|
+
<SectionRail.Bar key={section.id} level={section.level} value={section.id} />
|
|
17
|
+
))}
|
|
18
|
+
</SectionRail.Trigger>
|
|
19
|
+
<SectionRail.Content>
|
|
20
|
+
{SECTIONS.map((section) => (
|
|
21
|
+
<SectionRail.Item key={section.id} level={section.level} value={section.id}>
|
|
22
|
+
{section.title}
|
|
23
|
+
</SectionRail.Item>
|
|
24
|
+
))}
|
|
25
|
+
</SectionRail.Content>
|
|
26
|
+
</SectionRail>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** Closed, the panel is hidden from assistive technology, so its rows need `includeHiddenElements`. */
|
|
31
|
+
const ANY = { includeHiddenElements: true } as const;
|
|
32
|
+
|
|
33
|
+
/** RNTL's value matcher only reads now/min/max, so the trigger's spoken text is read off the prop. */
|
|
34
|
+
function spoken(): string | undefined {
|
|
35
|
+
return trigger().props.accessibilityValue?.text;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function trigger() {
|
|
39
|
+
return screen.getByRole("adjustable", { name: "Sections" });
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
async function activate(element: ReturnType<typeof trigger>) {
|
|
43
|
+
await fireEvent(element, "accessibilityAction", { nativeEvent: { actionName: "activate" } });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async function adjust(element: ReturnType<typeof trigger>, actionName: "increment" | "decrement") {
|
|
47
|
+
await fireEvent(element, "accessibilityAction", { nativeEvent: { actionName } });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async function pickRow(title: string) {
|
|
51
|
+
await fireEvent(screen.getByRole("button", { name: title, ...ANY }), "accessibilityTap");
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// A touch, a scrub and the scrim's outside tap run through Gesture Handler on the UI thread and
|
|
55
|
+
// cannot be driven from Jest, so opening is exercised through the trigger's `activate` action,
|
|
56
|
+
// which is the same `setOpen` path. The scrub's pure maths is covered by section-rail.variants.test.ts.
|
|
57
|
+
describe("SectionRail", () => {
|
|
58
|
+
beforeEach(() => {
|
|
59
|
+
jest.useFakeTimers();
|
|
60
|
+
});
|
|
61
|
+
afterEach(() => {
|
|
62
|
+
jest.useRealTimers();
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
test("the trigger is one adjustable element named Sections, valued by the active row", async () => {
|
|
66
|
+
await renderWithProviders(<Rail defaultValue="pricing" />);
|
|
67
|
+
const control = trigger();
|
|
68
|
+
expect(spoken()).toBe("Pricing");
|
|
69
|
+
expect(control).not.toBeExpanded();
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
test("with no section yet the trigger speaks an empty value", async () => {
|
|
73
|
+
await renderWithProviders(<Rail value={undefined} />);
|
|
74
|
+
expect(spoken()).toBe("");
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
test("rows are buttons and only the active one is selected", async () => {
|
|
78
|
+
await renderWithProviders(<Rail defaultValue="pricing" />);
|
|
79
|
+
expect(screen.getByRole("button", { name: "Pricing", ...ANY })).toBeSelected();
|
|
80
|
+
expect(screen.getByRole("button", { name: "Overview", ...ANY })).not.toBeSelected();
|
|
81
|
+
expect(screen.getByRole("button", { name: "Pricing details", ...ANY })).not.toBeSelected();
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
test("the panel is hidden from assistive technology while closed and exposed once open", async () => {
|
|
85
|
+
await renderWithProviders(<Rail />);
|
|
86
|
+
expect(screen.queryByRole("button", { name: "Overview" })).not.toBeOnTheScreen();
|
|
87
|
+
|
|
88
|
+
await activate(trigger());
|
|
89
|
+
expect(trigger()).toBeExpanded();
|
|
90
|
+
expect(screen.getByRole("button", { name: "Overview" })).toBeOnTheScreen();
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
test("activate toggles the panel and reports onOpenChange", async () => {
|
|
94
|
+
const onOpenChange = jest.fn();
|
|
95
|
+
await renderWithProviders(<Rail onOpenChange={onOpenChange} />);
|
|
96
|
+
|
|
97
|
+
await activate(trigger());
|
|
98
|
+
expect(onOpenChange).toHaveBeenLastCalledWith(true);
|
|
99
|
+
expect(trigger()).toBeExpanded();
|
|
100
|
+
|
|
101
|
+
await activate(trigger());
|
|
102
|
+
expect(onOpenChange).toHaveBeenLastCalledWith(false);
|
|
103
|
+
expect(trigger()).not.toBeExpanded();
|
|
104
|
+
expect(onOpenChange).toHaveBeenCalledTimes(2);
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
test("uncontrolled: defaultOpen starts it open", async () => {
|
|
108
|
+
await renderWithProviders(<Rail defaultOpen />);
|
|
109
|
+
expect(trigger()).toBeExpanded();
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
test("controlled open: reports the change and waits for the prop", async () => {
|
|
113
|
+
const onOpenChange = jest.fn();
|
|
114
|
+
const view = await renderWithProviders(<Rail isOpen={false} onOpenChange={onOpenChange} />);
|
|
115
|
+
|
|
116
|
+
await activate(trigger());
|
|
117
|
+
expect(onOpenChange).toHaveBeenCalledWith(true);
|
|
118
|
+
expect(trigger()).not.toBeExpanded();
|
|
119
|
+
|
|
120
|
+
await view.rerender(<Rail isOpen onOpenChange={onOpenChange} />);
|
|
121
|
+
expect(trigger()).toBeExpanded();
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
test("the accessibility escape on the open panel closes it", async () => {
|
|
125
|
+
const onOpenChange = jest.fn();
|
|
126
|
+
await renderWithProviders(
|
|
127
|
+
<SectionRail defaultOpen onOpenChange={onOpenChange}>
|
|
128
|
+
<SectionRail.Trigger>
|
|
129
|
+
<SectionRail.Bar value="a" />
|
|
130
|
+
</SectionRail.Trigger>
|
|
131
|
+
<SectionRail.Content testID="panel">
|
|
132
|
+
<SectionRail.Item value="a">Alpha</SectionRail.Item>
|
|
133
|
+
</SectionRail.Content>
|
|
134
|
+
</SectionRail>
|
|
135
|
+
);
|
|
136
|
+
const modal = screen.getByTestId("panel");
|
|
137
|
+
expect(modal.props.accessibilityViewIsModal).toBe(true);
|
|
138
|
+
await act(async () => {
|
|
139
|
+
modal.props.onAccessibilityEscape();
|
|
140
|
+
});
|
|
141
|
+
expect(onOpenChange).toHaveBeenLastCalledWith(false);
|
|
142
|
+
expect(trigger()).not.toBeExpanded();
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
test("increment and decrement step through the bars in layout order and stop at the ends", async () => {
|
|
146
|
+
const onValueChange = jest.fn();
|
|
147
|
+
await renderWithProviders(
|
|
148
|
+
<SectionRail defaultValue="overview" onValueChange={onValueChange}>
|
|
149
|
+
<SectionRail.Trigger>
|
|
150
|
+
{SECTIONS.map((section) => (
|
|
151
|
+
<SectionRail.Bar key={section.id} testID={`bar-${section.id}`} value={section.id} />
|
|
152
|
+
))}
|
|
153
|
+
</SectionRail.Trigger>
|
|
154
|
+
<SectionRail.Content>
|
|
155
|
+
{SECTIONS.map((section) => (
|
|
156
|
+
<SectionRail.Item key={section.id} value={section.id}>
|
|
157
|
+
{section.title}
|
|
158
|
+
</SectionRail.Item>
|
|
159
|
+
))}
|
|
160
|
+
</SectionRail.Content>
|
|
161
|
+
</SectionRail>
|
|
162
|
+
);
|
|
163
|
+
for (const [index, section] of SECTIONS.entries()) {
|
|
164
|
+
await fireEvent(screen.getByTestId(`bar-${section.id}`, ANY), "layout", {
|
|
165
|
+
nativeEvent: { layout: { x: 0, y: index * 10, width: 8, height: 4 } },
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
await adjust(trigger(), "decrement");
|
|
170
|
+
expect(onValueChange).not.toHaveBeenCalled();
|
|
171
|
+
|
|
172
|
+
await adjust(trigger(), "increment");
|
|
173
|
+
expect(onValueChange).toHaveBeenLastCalledWith("pricing");
|
|
174
|
+
expect(spoken()).toBe("Pricing");
|
|
175
|
+
|
|
176
|
+
await adjust(trigger(), "increment");
|
|
177
|
+
expect(onValueChange).toHaveBeenLastCalledWith("details");
|
|
178
|
+
|
|
179
|
+
await adjust(trigger(), "increment");
|
|
180
|
+
expect(onValueChange).toHaveBeenCalledTimes(2);
|
|
181
|
+
expect(spoken()).toBe("Pricing details");
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
test("tapping a row commits it, calls onValueChange and updates the trigger's value", async () => {
|
|
185
|
+
const onValueChange = jest.fn();
|
|
186
|
+
await renderWithProviders(<Rail defaultOpen defaultValue="overview" onValueChange={onValueChange} />);
|
|
187
|
+
|
|
188
|
+
await pickRow("Pricing");
|
|
189
|
+
expect(onValueChange).toHaveBeenCalledTimes(1);
|
|
190
|
+
expect(onValueChange).toHaveBeenCalledWith("pricing");
|
|
191
|
+
expect(spoken()).toBe("Pricing");
|
|
192
|
+
expect(screen.getByRole("button", { name: "Pricing" })).toBeSelected();
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
test("re-picking the active section does not call onValueChange", async () => {
|
|
196
|
+
const onValueChange = jest.fn();
|
|
197
|
+
await renderWithProviders(<Rail defaultOpen defaultValue="pricing" onValueChange={onValueChange} />);
|
|
198
|
+
await pickRow("Pricing");
|
|
199
|
+
expect(onValueChange).not.toHaveBeenCalled();
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
test("a pick lingers for closeDelay, then closes the panel", async () => {
|
|
203
|
+
const onOpenChange = jest.fn();
|
|
204
|
+
await renderWithProviders(<Rail closeDelay={300} defaultOpen onOpenChange={onOpenChange} />);
|
|
205
|
+
|
|
206
|
+
await pickRow("Pricing");
|
|
207
|
+
expect(trigger()).toBeExpanded();
|
|
208
|
+
|
|
209
|
+
await act(async () => {
|
|
210
|
+
jest.advanceTimersByTime(299);
|
|
211
|
+
});
|
|
212
|
+
expect(trigger()).toBeExpanded();
|
|
213
|
+
|
|
214
|
+
await act(async () => {
|
|
215
|
+
jest.advanceTimersByTime(1);
|
|
216
|
+
});
|
|
217
|
+
expect(trigger()).not.toBeExpanded();
|
|
218
|
+
expect(onOpenChange).toHaveBeenLastCalledWith(false);
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
test("picking again restarts the close timer", async () => {
|
|
222
|
+
await renderWithProviders(<Rail closeDelay={300} defaultOpen />);
|
|
223
|
+
|
|
224
|
+
await pickRow("Pricing");
|
|
225
|
+
await act(async () => {
|
|
226
|
+
jest.advanceTimersByTime(200);
|
|
227
|
+
});
|
|
228
|
+
await pickRow("Overview");
|
|
229
|
+
await act(async () => {
|
|
230
|
+
jest.advanceTimersByTime(200);
|
|
231
|
+
});
|
|
232
|
+
expect(trigger()).toBeExpanded();
|
|
233
|
+
|
|
234
|
+
await act(async () => {
|
|
235
|
+
jest.advanceTimersByTime(100);
|
|
236
|
+
});
|
|
237
|
+
expect(trigger()).not.toBeExpanded();
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
test("controlled value: reports the pick and waits for the prop", async () => {
|
|
241
|
+
const onValueChange = jest.fn();
|
|
242
|
+
const view = await renderWithProviders(<Rail defaultOpen onValueChange={onValueChange} value="overview" />);
|
|
243
|
+
|
|
244
|
+
await pickRow("Pricing");
|
|
245
|
+
expect(onValueChange).toHaveBeenCalledWith("pricing");
|
|
246
|
+
expect(spoken()).toBe("Overview");
|
|
247
|
+
|
|
248
|
+
await view.rerender(<Rail defaultOpen onValueChange={onValueChange} value="pricing" />);
|
|
249
|
+
expect(spoken()).toBe("Pricing");
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
test("value={undefined} stays controlled: a pick reports but does not move the rail", async () => {
|
|
253
|
+
const onValueChange = jest.fn();
|
|
254
|
+
const view = await renderWithProviders(<Rail defaultOpen onValueChange={onValueChange} value={undefined} />);
|
|
255
|
+
|
|
256
|
+
await pickRow("Overview");
|
|
257
|
+
expect(onValueChange).toHaveBeenCalledWith("overview");
|
|
258
|
+
expect(spoken()).toBe("");
|
|
259
|
+
|
|
260
|
+
await view.rerender(<Rail defaultOpen onValueChange={onValueChange} value="overview" />);
|
|
261
|
+
expect(spoken()).toBe("Overview");
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
test("a row's own onPress runs after the pick", async () => {
|
|
265
|
+
const onPress = jest.fn();
|
|
266
|
+
await renderWithProviders(
|
|
267
|
+
<SectionRail defaultOpen defaultValue="a">
|
|
268
|
+
<SectionRail.Trigger>
|
|
269
|
+
<SectionRail.Bar value="a" />
|
|
270
|
+
<SectionRail.Bar value="b" />
|
|
271
|
+
</SectionRail.Trigger>
|
|
272
|
+
<SectionRail.Content>
|
|
273
|
+
<SectionRail.Item value="a">Alpha</SectionRail.Item>
|
|
274
|
+
<SectionRail.Item onPress={onPress} value="b">
|
|
275
|
+
Beta
|
|
276
|
+
</SectionRail.Item>
|
|
277
|
+
</SectionRail.Content>
|
|
278
|
+
</SectionRail>
|
|
279
|
+
);
|
|
280
|
+
await pickRow("Beta");
|
|
281
|
+
expect(onPress).toHaveBeenCalledTimes(1);
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
test("a disabled row ignores activation", async () => {
|
|
285
|
+
const onValueChange = jest.fn();
|
|
286
|
+
await renderWithProviders(
|
|
287
|
+
<SectionRail defaultOpen defaultValue="a" onValueChange={onValueChange}>
|
|
288
|
+
<SectionRail.Trigger>
|
|
289
|
+
<SectionRail.Bar value="a" />
|
|
290
|
+
<SectionRail.Bar value="b" />
|
|
291
|
+
</SectionRail.Trigger>
|
|
292
|
+
<SectionRail.Content>
|
|
293
|
+
<SectionRail.Item value="a">Alpha</SectionRail.Item>
|
|
294
|
+
<SectionRail.Item disabled value="b">
|
|
295
|
+
Beta
|
|
296
|
+
</SectionRail.Item>
|
|
297
|
+
</SectionRail.Content>
|
|
298
|
+
</SectionRail>
|
|
299
|
+
);
|
|
300
|
+
const row = screen.getByRole("button", { name: "Beta" });
|
|
301
|
+
expect(row).toBeDisabled();
|
|
302
|
+
await fireEvent(row, "accessibilityTap");
|
|
303
|
+
expect(onValueChange).not.toHaveBeenCalled();
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
test("bars are hidden from assistive technology; the trigger is the only adjustable", async () => {
|
|
307
|
+
await renderWithProviders(
|
|
308
|
+
<SectionRail defaultValue="a">
|
|
309
|
+
<SectionRail.Trigger>
|
|
310
|
+
<SectionRail.Bar testID="bar-a" value="a" />
|
|
311
|
+
</SectionRail.Trigger>
|
|
312
|
+
<SectionRail.Content>
|
|
313
|
+
<SectionRail.Item value="a">Alpha</SectionRail.Item>
|
|
314
|
+
</SectionRail.Content>
|
|
315
|
+
</SectionRail>
|
|
316
|
+
);
|
|
317
|
+
expect(screen.getByTestId("bar-a", ANY).props.accessibilityElementsHidden).toBe(true);
|
|
318
|
+
expect(screen.getAllByRole("adjustable")).toHaveLength(1);
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
test("parts outside a SectionRail throw their documented error", async () => {
|
|
322
|
+
const original = console.error;
|
|
323
|
+
console.error = () => undefined;
|
|
324
|
+
try {
|
|
325
|
+
await expect(renderWithProviders(<SectionRail.Trigger />)).rejects.toThrow(
|
|
326
|
+
"SectionRail.Trigger must be rendered inside a <SectionRail>."
|
|
327
|
+
);
|
|
328
|
+
await expect(renderWithProviders(<SectionRail.Bar value="a" />)).rejects.toThrow(
|
|
329
|
+
"must be rendered inside a <SectionRail>."
|
|
330
|
+
);
|
|
331
|
+
await expect(renderWithProviders(<SectionRail.Content>{null}</SectionRail.Content>)).rejects.toThrow(
|
|
332
|
+
"SectionRail.Content must be rendered inside a <SectionRail>."
|
|
333
|
+
);
|
|
334
|
+
await expect(renderWithProviders(<SectionRail.Item value="a">A</SectionRail.Item>)).rejects.toThrow(
|
|
335
|
+
"SectionRail.Item must be rendered inside a <SectionRail>."
|
|
336
|
+
);
|
|
337
|
+
} finally {
|
|
338
|
+
console.error = original;
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
});
|
|
@@ -25,6 +25,7 @@ engine. An app that imports no picker still never resolves it.
|
|
|
25
25
|
| `select.context.tsx` | `SelectProvider`, `useSelect()`, `useSelectContext()`, `useSelectPart()` |
|
|
26
26
|
| `select.types.ts` | `SelectOption`, `SelectOptionGroup`, `SelectRowOption`, `SelectEntry`, `SelectListRow`, `SelectHighlightRange` |
|
|
27
27
|
| `select.variants.ts` | Pure `tv()` slots + every resolver, no RN imports — the sheet cap and the searchable list's floor among them |
|
|
28
|
+
| `select.render.test.tsx` | Mounted under Jest inside `BottomSheetProvider` — trigger role, expanded and value, single and multiple picks, controlled and uncontrolled, limit, search, `Field` inheritance, parts outside a root |
|
|
28
29
|
| `select.variants.test.ts` | |
|
|
29
30
|
| `select.collect.test.ts` | |
|
|
30
31
|
|