Skip to content

Commit dc9c26b

Browse files
authored
test(react): Sort the exported keys of React package for snapshot testing (#2445)
* Sort the exported keys of React package for snapshot testing * Point exports test to src/ * Change exports tests to snapshot files
1 parent f62fb1b commit dc9c26b

File tree

2 files changed

+207
-193
lines changed

2 files changed

+207
-193
lines changed
Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`@aws-amplify/ui-react exports should match snapshot 1`] = `
4+
Array [
5+
"Alert",
6+
"AmplifyProvider",
7+
"Authenticator",
8+
"Badge",
9+
"Button",
10+
"ButtonGroup",
11+
"Card",
12+
"CheckboxField",
13+
"Collection",
14+
"ComponentClassNames",
15+
"ComponentClassObject",
16+
"ComponentPropsToStylePropsMap",
17+
"ComponentPropsToStylePropsMapKeys",
18+
"Divider",
19+
"Expander",
20+
"ExpanderItem",
21+
"FieldGroupIcon",
22+
"FieldGroupIconButton",
23+
"Flex",
24+
"Geocoder",
25+
"Grid",
26+
"Heading",
27+
"Icon",
28+
"Image",
29+
"Link",
30+
"Loader",
31+
"LocationSearch",
32+
"MapView",
33+
"Menu",
34+
"MenuButton",
35+
"MenuItem",
36+
"Pagination",
37+
"PasswordField",
38+
"PhoneNumberField",
39+
"Placeholder",
40+
"Radio",
41+
"RadioGroupField",
42+
"Rating",
43+
"ScrollView",
44+
"SearchField",
45+
"SelectField",
46+
"SliderField",
47+
"StepperField",
48+
"SwitchField",
49+
"TabItem",
50+
"Table",
51+
"TableBody",
52+
"TableCell",
53+
"TableFoot",
54+
"TableHead",
55+
"TableRow",
56+
"Tabs",
57+
"Text",
58+
"TextAreaField",
59+
"TextField",
60+
"ThemeProvider",
61+
"ToggleButton",
62+
"ToggleButtonGroup",
63+
"View",
64+
"VisuallyHidden",
65+
"components",
66+
"createTheme",
67+
"defaultDarkModeOverride",
68+
"defaultTheme",
69+
"primitives",
70+
"translations",
71+
"useAmplify",
72+
"useAuthenticator",
73+
"useBreakpointValue",
74+
"usePagination",
75+
"useTheme",
76+
"withAuthenticator",
77+
]
78+
`;
79+
80+
exports[`@aws-amplify/ui-react/internal exports should match snapshot 1`] = `
81+
Array [
82+
"IconAdd",
83+
"IconCheck",
84+
"IconCheckCircle",
85+
"IconCheckCircleOutline",
86+
"IconChevronLeft",
87+
"IconChevronRight",
88+
"IconClose",
89+
"IconError",
90+
"IconExpandMore",
91+
"IconFiberManualRecord",
92+
"IconHighlightOff",
93+
"IconIndeterminate",
94+
"IconInfo",
95+
"IconMenu",
96+
"IconRemove",
97+
"IconSearch",
98+
"IconStar",
99+
"IconVisibility",
100+
"IconVisibilityOff",
101+
"IconWarning",
102+
"PrimitiveCatalog",
103+
"createDataStorePredicate",
104+
"findChildOverrides",
105+
"getOverrideProps",
106+
"getOverridesFromVariants",
107+
"mergeVariantsAndOverrides",
108+
"useAuth",
109+
"useAuthSignOutAction",
110+
"useDataStoreBinding",
111+
"useDataStoreCollection",
112+
"useDataStoreCreateAction",
113+
"useDataStoreDeleteAction",
114+
"useDataStoreItem",
115+
"useDataStoreUpdateAction",
116+
"useNavigateAction",
117+
"useStateMutationAction",
118+
"useStorageURL",
119+
]
120+
`;
121+
122+
exports[`@aws-amplify/ui-react/legacy exports should match snapshot 1`] = `
123+
Array [
124+
"AmplifyAuthenticator",
125+
"AmplifyChatbot",
126+
"AmplifyPhotoPicker",
127+
"AmplifyPicker",
128+
"AmplifyS3Album",
129+
"AmplifyS3Image",
130+
"AmplifyS3ImagePicker",
131+
"AmplifyS3Text",
132+
"AmplifyS3TextPicker",
133+
"AmplifySignIn",
134+
"AmplifySignOut",
135+
"withAuthenticator",
136+
]
137+
`;
138+
139+
exports[`primitive catalog should match primitives list snapshot 1`] = `
140+
Array [
141+
"Alert",
142+
"Badge",
143+
"Button",
144+
"ButtonGroup",
145+
"Card",
146+
"CheckboxField",
147+
"Collection",
148+
"Divider",
149+
"Expander",
150+
"ExpanderItem",
151+
"FieldGroupIcon",
152+
"FieldGroupIconButton",
153+
"Flex",
154+
"Grid",
155+
"Heading",
156+
"Icon",
157+
"Image",
158+
"Link",
159+
"Loader",
160+
"Menu",
161+
"MenuButton",
162+
"MenuItem",
163+
"Pagination",
164+
"PasswordField",
165+
"PhoneNumberField",
166+
"Placeholder",
167+
"Radio",
168+
"RadioGroupField",
169+
"Rating",
170+
"ScrollView",
171+
"SearchField",
172+
"SelectField",
173+
"SliderField",
174+
"StepperField",
175+
"SwitchField",
176+
"TabItem",
177+
"Table",
178+
"TableBody",
179+
"TableCell",
180+
"TableFoot",
181+
"TableHead",
182+
"TableRow",
183+
"Tabs",
184+
"Text",
185+
"TextAreaField",
186+
"TextField",
187+
"ToggleButton",
188+
"ToggleButtonGroup",
189+
"View",
190+
"VisuallyHidden",
191+
]
192+
`;

0 commit comments

Comments
 (0)