@trii/components 3.1.8 → 3.1.11
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/dist/cjs/index.js +199 -45
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/theme.js +84 -5
- package/dist/cjs/theme.js.map +1 -1
- package/dist/esm/index.js +200 -46
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme.js +84 -5
- package/dist/esm/theme.js.map +1 -1
- package/dist/index.d.ts +30 -2
- package/dist/integration-button-icons-build.log +36 -0
- package/dist/integration-button-icons-bundle.log +24 -0
- package/dist/integration-button-icons-types.log +29 -0
- package/dist/sidebar-fixes-all-tests.log +261 -0
- package/dist/sidebar-fixes-baseline.log +29 -0
- package/dist/sidebar-fixes-build.log +32 -0
- package/dist/sidebar-fixes-tests.log +57 -0
- package/dist/sidebar-fixes-types.log +4 -0
- package/dist/sidebar-panel-tests.log +356 -0
- package/dist/tab-scroll-build.log +32 -0
- package/dist/tab-scroll-tests.log +58 -0
- package/dist/tabs-all-tests.log +330 -0
- package/dist/tabs-build.log +32 -0
- package/dist/tabs-format.log +24 -0
- package/dist/tabs-tests.log +85 -0
- package/dist/tabs-types.log +4 -0
- package/dist/tabs-ui-tests.log +84 -0
- package/dist/types/asyncState/__tests__/asyncState.test.d.ts +1 -0
- package/dist/types/asyncState/__tests__/useAsyncData.test.d.ts +1 -0
- package/dist/types/components/AsyncContent/__tests__/AsyncContent.test.d.ts +1 -0
- package/dist/types/components/AsyncContent/__tests__/AsyncContentI18n.test.d.ts +1 -0
- package/dist/types/components/ContactInfoPopup/ContactInfoPopup.stories.d.ts +9 -0
- package/dist/types/components/ContactSidebar/ContactSidebar.stories.d.ts +58 -0
- package/dist/types/components/ContactSidebar/SidebarContent.d.ts +2 -2
- package/dist/types/components/ContactSidebar/components/MediaViewer/MediaViewer.d.ts +2 -1
- package/dist/types/components/ContactSidebar/components/PanelView/PanelView.d.ts +2 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/BotsInfo/BotsInfo.d.ts +2 -2
- package/dist/types/components/ContactSidebar/components/PanelView/components/BotsInfo/components/DataItem/DataItem.d.ts +3 -3
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactButton/components/ButtonsListItem/ButtonsListItem.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactButton/components/TemplateRenderer/TemplateRenderer.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactConversation/styles.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/components/Contact/AddressCard.d.ts +19 -0
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/components/Contact/Contact.d.ts +3 -2
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/components/Contact/CopyAddress.d.ts +3 -0
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/components/Properties/Properties.d.ts +2 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactDataDetails/ContactDataDetails.d.ts +1 -4
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/components/AddEvent/styles.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactMedia/ContactMedia.d.ts +2 -3
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactMedia/components/AudioMessage/AudioMessage.d.ts +5 -7
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactMedia/components/AudioMessage/utils/getNewWaveSurfer.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactMedia/components/Image/Image.d.ts +5 -10
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactMedia/mediaEntries.d.ts +10 -0
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTask/components/AddTask/styles.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/IntegrationButtonSearch/IntegrationButtonSearch.d.ts +4 -0
- package/dist/types/components/ContactSidebar/components/SidebarLoadError.d.ts +3 -0
- package/dist/types/components/ContactSidebar/components/referencePanelStyles.d.ts +4 -0
- package/dist/types/components/ContactSidebar/components/verticalTabsStyles.d.ts +11 -0
- package/dist/types/components/ContactSidebar/context/MediaViewerContext.d.ts +1 -1
- package/dist/types/components/ContactSidebar/context/SidebarDataContext.d.ts +6 -15
- package/dist/types/components/ContactSidebar/context/SidebarPropsContext.d.ts +2 -0
- package/dist/types/components/ContactSidebar/hooks/useConversationHistory.d.ts +16 -0
- package/dist/types/components/ContactSidebar/hooks/useSidebarScope.d.ts +5 -0
- package/dist/types/components/ContactSidebar/i18n/useMediaText.d.ts +2 -0
- package/dist/types/components/ContactSidebar/i18n/useReferenceText.d.ts +3 -0
- package/dist/types/components/ContactSidebar/services/buttonsApi.d.ts +1 -1
- package/dist/types/components/ContactSidebar/utils/contactChannels.d.ts +52 -0
- package/dist/types/components/ContactSidebar/utils/conversationPresentation.d.ts +8 -0
- package/dist/types/components/EditContactModal/EditContactModal.stories.d.ts +9 -0
- package/dist/types/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +2 -1
- package/dist/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -3
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/ContactMethod.d.ts +5 -8
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/SubscriptionDialog.d.ts +11 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/style.d.ts +5 -3
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/style.d.ts +11 -3
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/style.d.ts +5 -5
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/style.d.ts +3 -6
- package/dist/types/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +6 -6
- package/dist/types/components/EditContactModal/context/EditContactApiContext.d.ts +8 -0
- package/dist/types/components/EditContactModal/layout/EditorSections.d.ts +16 -0
- package/dist/types/components/EditContactModal/services/api.d.ts +2 -0
- package/dist/types/components/EventsDialog/components/LinkContactsSelect/styles.d.ts +6 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/MapLocationPicker.d.ts +8 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/GoogleMap/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/index.d.ts +3 -0
- package/dist/types/components/EventsDialog/hooks/index.d.ts +9 -0
- package/dist/types/components/EventsDialog/hooks/useSelect.d.ts +14 -0
- package/dist/types/components/EventsDialog/utils/eventValidation.d.ts +37 -0
- package/dist/types/components/EventsDialog/utils/googleMapsUtils.d.ts +5 -0
- package/dist/types/components/EventsDialog/utils/keyboardNavigation.d.ts +24 -0
- package/dist/types/components/IntegrationButtonIcon/IntegrationButtonIcon.d.ts +8 -0
- package/dist/types/components/IntegrationButtonIcon/catalog.d.ts +14 -0
- package/dist/types/components/IntegrationButtonIcon/colors.d.ts +5 -0
- package/dist/types/components/IntegrationButtonIcon/index.d.ts +6 -0
- package/dist/types/components/PanelErrorBoundary/__tests__/PanelErrorBoundary.test.d.ts +1 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/theme/MuiComponentsConfig.test.d.ts +1 -0
- package/dist/types/theme/selectThemeComponents.d.ts +3 -0
- package/dist/types/theme/themePreference.test.d.ts +1 -0
- package/dist/types/theme/themeProvider.test.d.ts +1 -0
- package/dist/types/utils/contactOwner.d.ts +3 -0
- package/package.json +3 -2
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
|
|
2
|
+
> @trii/components@3.1.10 test
|
|
3
|
+
> jest
|
|
4
|
+
|
|
5
|
+
(node:38444) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
6
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
7
|
+
PASS src/components/ContactSidebar/services/__tests__/ticketsApi.test.ts (12.777 s)
|
|
8
|
+
(node:44824) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
9
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
10
|
+
PASS src/asyncState/__tests__/useAsyncData.test.tsx (14.129 s)
|
|
11
|
+
● Console
|
|
12
|
+
|
|
13
|
+
console.error
|
|
14
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
15
|
+
|
|
16
|
+
18 | const fetcher = jest.fn(() => request.promise);
|
|
17
|
+
19 |
|
|
18
|
+
> 20 | const { result } = renderHook(() => useAsyncData(fetcher));
|
|
19
|
+
| ^
|
|
20
|
+
21 |
|
|
21
|
+
22 | // Carga inicial sin datos: bloqueante.
|
|
22
|
+
23 | expect(result.current.status).toBe('loading');
|
|
23
|
+
|
|
24
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
25
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
26
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
27
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
28
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
29
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
30
|
+
at renderHook (node_modules/@testing-library/react/dist/pure.js:318:7)
|
|
31
|
+
at Object.<anonymous> (src/asyncState/__tests__/useAsyncData.test.tsx:20:34)
|
|
32
|
+
|
|
33
|
+
(node:60852) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
34
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
35
|
+
PASS src/components/ContactSidebar/hooks/__tests__/useContactTickets.test.tsx (14.46 s)
|
|
36
|
+
● Console
|
|
37
|
+
|
|
38
|
+
console.error
|
|
39
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
40
|
+
|
|
41
|
+
24 |
|
|
42
|
+
25 | it('stays idle and fetches nothing while disabled', () => {
|
|
43
|
+
> 26 | const { result } = renderHook(() =>
|
|
44
|
+
| ^
|
|
45
|
+
27 | useContactTickets({ api, contactId: 'c1', stages: STAGES, enabled: false })
|
|
46
|
+
28 | );
|
|
47
|
+
29 |
|
|
48
|
+
|
|
49
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
50
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
51
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
52
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
53
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
54
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
55
|
+
at renderHook (node_modules/@testing-library/react/dist/pure.js:318:7)
|
|
56
|
+
at Object.<anonymous> (src/components/ContactSidebar/hooks/__tests__/useContactTickets.test.tsx:26:34)
|
|
57
|
+
|
|
58
|
+
PASS src/asyncState/__tests__/asyncState.test.ts
|
|
59
|
+
(node:43964) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
60
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
61
|
+
PASS src/components/ContactSidebar/context/__tests__/SidebarEntityContext.test.tsx
|
|
62
|
+
● Console
|
|
63
|
+
|
|
64
|
+
console.error
|
|
65
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
66
|
+
|
|
67
|
+
46 | });
|
|
68
|
+
47 | it('ignores an old mutation after A → B → A', async () => {
|
|
69
|
+
> 48 | const { rerender } = render(view());
|
|
70
|
+
| ^
|
|
71
|
+
49 | await waitFor(() => expect(context.status).toBe('succeeded'));
|
|
72
|
+
50 | const oldSetter = context.setEntity;
|
|
73
|
+
51 | mockProps = { ...mockProps, contactId: 'B' };
|
|
74
|
+
|
|
75
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
76
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
77
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
78
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
79
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
80
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
81
|
+
at Object.<anonymous> (src/components/ContactSidebar/context/__tests__/SidebarEntityContext.test.tsx:48:30)
|
|
82
|
+
|
|
83
|
+
PASS src/components/ContactSidebar/hooks/__tests__/useConversationHistory.test.tsx
|
|
84
|
+
● Console
|
|
85
|
+
|
|
86
|
+
console.error
|
|
87
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
88
|
+
|
|
89
|
+
27 | const pending = deferred<IConversation[]>();
|
|
90
|
+
28 | fetchMock.mockResolvedValueOnce(page()).mockReturnValueOnce(pending.promise);
|
|
91
|
+
> 29 | const { result } = renderHook(() => useConversationHistory());
|
|
92
|
+
| ^
|
|
93
|
+
30 | await act(async () => result.current.fetch());
|
|
94
|
+
31 | act(() => {
|
|
95
|
+
32 | void result.current.fetch();
|
|
96
|
+
|
|
97
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
98
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
99
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
100
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
101
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
102
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
103
|
+
at renderHook (node_modules/@testing-library/react/dist/pure.js:318:7)
|
|
104
|
+
at Object.<anonymous> (src/components/ContactSidebar/hooks/__tests__/useConversationHistory.test.tsx:29:32)
|
|
105
|
+
|
|
106
|
+
PASS src/components/ContactSidebar/context/__tests__/SidebarDataContext.test.tsx (16.434 s)
|
|
107
|
+
● Console
|
|
108
|
+
|
|
109
|
+
console.error
|
|
110
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
111
|
+
|
|
112
|
+
34 | <SidebarDataProvider>{children}</SidebarDataProvider>
|
|
113
|
+
35 | );
|
|
114
|
+
> 36 | const setup = () => renderHook(() => useSidebarData(), { wrapper });
|
|
115
|
+
| ^
|
|
116
|
+
37 | const input = (names = ['a.txt']) =>
|
|
117
|
+
38 | ({
|
|
118
|
+
39 | target: { files: names.map((name) => new File(['content'], name, { type: 'text/plain' })) },
|
|
119
|
+
|
|
120
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
121
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
122
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
123
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
124
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
125
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
126
|
+
at renderHook (node_modules/@testing-library/react/dist/pure.js:318:7)
|
|
127
|
+
at setup (src/components/ContactSidebar/context/__tests__/SidebarDataContext.test.tsx:36:31)
|
|
128
|
+
at Object.setup (src/components/ContactSidebar/context/__tests__/SidebarDataContext.test.tsx:54:22)
|
|
129
|
+
|
|
130
|
+
PASS src/components/ContactSidebar/utils/__tests__/formatRelativeTime.test.ts
|
|
131
|
+
PASS src/components/ContactSidebar/utils/__tests__/contactChannels.test.ts
|
|
132
|
+
PASS src/components/ContactSidebar/utils/__tests__/conversationPresentation.test.ts
|
|
133
|
+
(node:19852) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
134
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
135
|
+
PASS src/theme/themePreference.test.ts (20.727 s)
|
|
136
|
+
(node:54724) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
137
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
138
|
+
PASS src/theme/MuiComponentsConfig.test.ts (20.713 s)
|
|
139
|
+
(node:63056) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
140
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
141
|
+
PASS src/theme/themeProvider.test.ts (20.602 s)
|
|
142
|
+
(node:3108) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
143
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
144
|
+
PASS src/theme/selectThemeComponents.test.ts (20.457 s)
|
|
145
|
+
(node:24432) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
146
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
147
|
+
PASS src/components/AsyncContent/__tests__/AsyncContentI18n.test.tsx (21.426 s)
|
|
148
|
+
● Console
|
|
149
|
+
|
|
150
|
+
console.info
|
|
151
|
+
🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙
|
|
152
|
+
|
|
153
|
+
at I18n.init (node_modules/i18next/dist/cjs/i18next.js:1789:90)
|
|
154
|
+
|
|
155
|
+
console.error
|
|
156
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
157
|
+
|
|
158
|
+
30 | describe('AsyncContent — i18n real del paquete', () => {
|
|
159
|
+
31 | it('usa los textos del paquete según el idioma pedido', () => {
|
|
160
|
+
> 32 | const { unmount } = render(
|
|
161
|
+
| ^
|
|
162
|
+
33 | <ErrorState language="es" onRetry={() => undefined} />
|
|
163
|
+
34 | );
|
|
164
|
+
35 | expect(
|
|
165
|
+
|
|
166
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
167
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
168
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
169
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
170
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
171
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
172
|
+
at Object.<anonymous> (src/components/AsyncContent/__tests__/AsyncContentI18n.test.tsx:32:31)
|
|
173
|
+
|
|
174
|
+
(node:56476) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
175
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
176
|
+
PASS src/components/PanelErrorBoundary/__tests__/PanelErrorBoundary.test.tsx (21.076 s)
|
|
177
|
+
(node:60080) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
178
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
179
|
+
PASS src/components/AsyncContent/__tests__/AsyncContent.test.tsx (21.348 s)
|
|
180
|
+
● Console
|
|
181
|
+
|
|
182
|
+
console.error
|
|
183
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
184
|
+
|
|
185
|
+
24 | });
|
|
186
|
+
25 |
|
|
187
|
+
> 26 | render(<AsyncContent state={state}>{renderData}</AsyncContent>);
|
|
188
|
+
| ^
|
|
189
|
+
27 |
|
|
190
|
+
28 | expect(screen.getByRole('progressbar')).toBeInTheDocument();
|
|
191
|
+
29 | });
|
|
192
|
+
|
|
193
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
194
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
195
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
196
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
197
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
198
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
199
|
+
at Object.<anonymous> (src/components/AsyncContent/__tests__/AsyncContent.test.tsx:26:11)
|
|
200
|
+
|
|
201
|
+
(node:41088) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
202
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
203
|
+
(node:52148) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
204
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
205
|
+
PASS src/components/ContactSidebar/__tests__/contactPanels.test.tsx (22.537 s)
|
|
206
|
+
● Console
|
|
207
|
+
|
|
208
|
+
console.error
|
|
209
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
210
|
+
|
|
211
|
+
102 | (isBusiness) => {
|
|
212
|
+
103 | mockEntity = { ...mockEntity, isBusiness, name: 'Example Business' };
|
|
213
|
+
> 104 | render(<PremiumContactHeader activeTab={0} />);
|
|
214
|
+
| ^
|
|
215
|
+
105 | fireEvent.click(screen.getByLabelText('global.edit').querySelector('button')!);
|
|
216
|
+
106 | expect(mockEditorProps.open).toBe(true);
|
|
217
|
+
107 | expect(mockEditorProps.entityId).toBe('A');
|
|
218
|
+
|
|
219
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
220
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
221
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
222
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
223
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
224
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
225
|
+
at src/components/ContactSidebar/__tests__/contactPanels.test.tsx:104:11
|
|
226
|
+
|
|
227
|
+
(node:35300) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
228
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
229
|
+
PASS src/components/IntegrationButtonIcon/__tests__/IntegrationButtonIcon.test.tsx (22.509 s)
|
|
230
|
+
● Console
|
|
231
|
+
|
|
232
|
+
console.error
|
|
233
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
234
|
+
|
|
235
|
+
40 |
|
|
236
|
+
41 | it.each(['light', 'dark'] as const)('uses the custom %s color for a configured Lucide icon', mode => {
|
|
237
|
+
> 42 | const { container } = render(preview(colors, mode));
|
|
238
|
+
| ^
|
|
239
|
+
43 | const svg = container.querySelector('svg');
|
|
240
|
+
44 | expect(svg).toHaveClass('lucide-receipt');
|
|
241
|
+
45 | expect(svg).toHaveAttribute('stroke', mode === 'light' ? '#2563eb' : '#fbbf24');
|
|
242
|
+
|
|
243
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
244
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
245
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
246
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
247
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
248
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
249
|
+
at src/components/IntegrationButtonIcon/__tests__/IntegrationButtonIcon.test.tsx:42:31
|
|
250
|
+
|
|
251
|
+
PASS src/components/ContactSidebar/__tests__/SidebarContent.test.tsx (6.313 s)
|
|
252
|
+
● Console
|
|
253
|
+
|
|
254
|
+
console.error
|
|
255
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
256
|
+
|
|
257
|
+
34 | });
|
|
258
|
+
35 | it('leaves retry accessible when initial loading fails', () => {
|
|
259
|
+
> 36 | render(<SidebarContent conversation={null} active />);
|
|
260
|
+
| ^
|
|
261
|
+
37 | expect(screen.getByRole('button', { name: 'retry' })).toBeVisible();
|
|
262
|
+
38 | expect(screen.queryByRole('progressbar')).not.toBeInTheDocument();
|
|
263
|
+
39 | });
|
|
264
|
+
|
|
265
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
266
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
267
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
268
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
269
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
270
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
271
|
+
at Object.<anonymous> (src/components/ContactSidebar/__tests__/SidebarContent.test.tsx:36:9)
|
|
272
|
+
|
|
273
|
+
(node:5124) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
274
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
275
|
+
PASS src/components/ContactSidebar/__tests__/tabErrors.test.tsx (23.749 s)
|
|
276
|
+
● Console
|
|
277
|
+
|
|
278
|
+
console.error
|
|
279
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
280
|
+
|
|
281
|
+
79 | lastUploaded: null,
|
|
282
|
+
80 | };
|
|
283
|
+
> 81 | render(<ContactFiles contactId="A" />);
|
|
284
|
+
| ^
|
|
285
|
+
82 | expect(screen.getByRole('progressbar')).toBeVisible();
|
|
286
|
+
83 | expect(screen.getByText('pending.txt')).toBeVisible();
|
|
287
|
+
84 | expect(mockLegacyRegister).not.toHaveBeenCalled();
|
|
288
|
+
|
|
289
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
290
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
291
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
292
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
293
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
294
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
295
|
+
at Object.<anonymous> (src/components/ContactSidebar/__tests__/tabErrors.test.tsx:81:9)
|
|
296
|
+
|
|
297
|
+
PASS src/components/ContactSidebar/components/PanelView/components/ContactTickets/__tests__/ContactTickets.test.tsx (25.113 s)
|
|
298
|
+
● Console
|
|
299
|
+
|
|
300
|
+
console.info
|
|
301
|
+
🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙
|
|
302
|
+
|
|
303
|
+
at I18n.init (node_modules/i18next/dist/cjs/i18next.js:1789:90)
|
|
304
|
+
|
|
305
|
+
console.error
|
|
306
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
307
|
+
|
|
308
|
+
51 | } as unknown as SidebarProps;
|
|
309
|
+
52 |
|
|
310
|
+
> 53 | render(
|
|
311
|
+
| ^
|
|
312
|
+
54 | <SidebarI18nProvider language="en">
|
|
313
|
+
55 | <SidebarPropsProvider value={props}>
|
|
314
|
+
56 | <ContactTickets />
|
|
315
|
+
|
|
316
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
317
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
318
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
319
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
320
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
321
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
322
|
+
at renderPanel (src/components/ContactSidebar/components/PanelView/components/ContactTickets/__tests__/ContactTickets.test.tsx:53:9)
|
|
323
|
+
at Object.renderPanel (src/components/ContactSidebar/components/PanelView/components/ContactTickets/__tests__/ContactTickets.test.tsx:83:5)
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
Test Suites: 22 passed, 22 total
|
|
327
|
+
Tests: 238 passed, 238 total
|
|
328
|
+
Snapshots: 0 total
|
|
329
|
+
Time: 39.704 s
|
|
330
|
+
Ran all test suites.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
> @trii/components@3.1.10 build
|
|
3
|
+
> npm-run-all --serial build:types build:js
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> @trii/components@3.1.10 build:types
|
|
7
|
+
> tsc --project tsconfig.build.json --emitDeclarationOnly
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
> @trii/components@3.1.10 build:js
|
|
11
|
+
> rollup -c
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
src/index.ts → dist/cjs/index.js, dist/esm/index.js...
|
|
15
|
+
(!) Circular dependency
|
|
16
|
+
src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/index.ts -> src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/index.ts -> src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/InformationSocialNetworkItem.tsx -> src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/index.ts
|
|
17
|
+
created dist/cjs/index.js, dist/esm/index.js in 16.6s
|
|
18
|
+
|
|
19
|
+
src/asyncState/index.ts → dist/cjs/async-state.js, dist/esm/async-state.js...
|
|
20
|
+
created dist/cjs/async-state.js, dist/esm/async-state.js in 129ms
|
|
21
|
+
|
|
22
|
+
src/theme/index.ts → dist/cjs/theme.js, dist/esm/theme.js...
|
|
23
|
+
created dist/cjs/theme.js, dist/esm/theme.js in 180ms
|
|
24
|
+
|
|
25
|
+
dist/types/index.d.ts → dist/index.d.ts...
|
|
26
|
+
created dist/index.d.ts in 681ms
|
|
27
|
+
|
|
28
|
+
dist/types/asyncState/index.d.ts → dist/async-state.d.ts...
|
|
29
|
+
created dist/async-state.d.ts in 44ms
|
|
30
|
+
|
|
31
|
+
dist/types/theme/index.d.ts → dist/theme.d.ts...
|
|
32
|
+
created dist/theme.d.ts in 103ms
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[warn] jsxBracketSameLine is deprecated.
|
|
2
|
+
src/components/ContactSidebar/hooks/useSidebarScope.ts 149ms
|
|
3
|
+
src/components/ContactSidebar/hooks/useConversationHistory.ts 66ms
|
|
4
|
+
src/components/ContactSidebar/context/SidebarDataContext.tsx 266ms
|
|
5
|
+
[error] src/components/ContactSidebar/SidebarContent.tsx: SyntaxError: ',' expected. (146:8)
|
|
6
|
+
[error] 144 | }
|
|
7
|
+
[error] 145 | };
|
|
8
|
+
[error] > 146 | }, []);
|
|
9
|
+
[error] | ^
|
|
10
|
+
[error] 147 |
|
|
11
|
+
[error] 148 | return (
|
|
12
|
+
[error] 149 | <>
|
|
13
|
+
src/components/ContactSidebar/components/SidebarLoadError.tsx 6ms
|
|
14
|
+
src/components/ContactSidebar/components/PanelView/components/ContactFiles/ContactFiles.tsx 63ms
|
|
15
|
+
src/components/ContactSidebar/components/PanelView/components/ContactHistory/ContactHistory.tsx 25ms
|
|
16
|
+
src/components/ContactSidebar/components/PanelView/components/ContactEvent/ContactEvent.tsx 35ms
|
|
17
|
+
src/components/ContactSidebar/components/PanelView/components/ContactTask/ContactTask.tsx 23ms
|
|
18
|
+
src/components/ContactSidebar/components/PanelView/components/ContactMedia/ContactMedia.tsx 82ms
|
|
19
|
+
src/components/ContactSidebar/components/PanelView/components/ContactConversation/ContactConversation.tsx 26ms
|
|
20
|
+
src/components/ContactSidebar/components/PanelView/components/ContactRelations/ContactRelations.tsx 52ms
|
|
21
|
+
src/components/ContactSidebar/context/__tests__/SidebarDataContext.test.tsx 92ms
|
|
22
|
+
src/components/ContactSidebar/hooks/__tests__/useConversationHistory.test.tsx 27ms
|
|
23
|
+
src/components/ContactSidebar/__tests__/tabErrors.test.tsx 47ms
|
|
24
|
+
src/components/ContactSidebar/__tests__/SidebarContent.test.tsx 19ms
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
|
|
2
|
+
> @trii/components@3.1.10 test
|
|
3
|
+
> jest src/components/ContactSidebar/context/__tests__/SidebarDataContext.test.tsx src/components/ContactSidebar/hooks/__tests__/useConversationHistory.test.tsx src/components/IntegrationButtonIcon/__tests__/IntegrationButtonIcon.test.tsx
|
|
4
|
+
|
|
5
|
+
(node:54452) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
6
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
7
|
+
PASS src/components/ContactSidebar/hooks/__tests__/useConversationHistory.test.tsx (12.502 s)
|
|
8
|
+
● Console
|
|
9
|
+
|
|
10
|
+
console.error
|
|
11
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
12
|
+
|
|
13
|
+
12 | it('blocks simultaneous pages, deduplicates and stops after the last page',async()=>{
|
|
14
|
+
13 | const pending=deferred<IConversation[]>();fetchMock.mockResolvedValueOnce(page()).mockReturnValueOnce(pending.promise);
|
|
15
|
+
> 14 | const {result}=renderHook(()=>useConversationHistory());await act(async()=>result.current.fetch());
|
|
16
|
+
| ^
|
|
17
|
+
15 | act(()=>{void result.current.fetch();void result.current.fetch();});expect(fetchMock).toHaveBeenCalledTimes(2);
|
|
18
|
+
16 | expect(fetchMock.mock.calls[1][0].before).toBe('49');
|
|
19
|
+
17 | await act(async()=>{pending.resolve([{id:'49'},{id:'50'}] as IConversation[]);await pending.promise;});
|
|
20
|
+
|
|
21
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
22
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
23
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
24
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
25
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
26
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
27
|
+
at renderHook (node_modules/@testing-library/react/dist/pure.js:318:7)
|
|
28
|
+
at Object.<anonymous> (src/components/ContactSidebar/hooks/__tests__/useConversationHistory.test.tsx:14:27)
|
|
29
|
+
|
|
30
|
+
(node:16640) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
31
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
32
|
+
PASS src/components/ContactSidebar/context/__tests__/SidebarDataContext.test.tsx (13.994 s)
|
|
33
|
+
● Console
|
|
34
|
+
|
|
35
|
+
console.error
|
|
36
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
37
|
+
|
|
38
|
+
25 | const calendar = jest.mocked(calendarApi);
|
|
39
|
+
26 | const wrapper = ({children}: {children:React.ReactNode}) => <SidebarDataProvider>{children}</SidebarDataProvider>;
|
|
40
|
+
> 27 | const setup = () => renderHook(() => useSidebarData(), {wrapper});
|
|
41
|
+
| ^
|
|
42
|
+
28 | const input = (names=['a.txt']) => ({target:{files:names.map(name => new File(['content'],name,{type:'text/plain'}))}} as unknown as React.ChangeEvent<HTMLInputElement>);
|
|
43
|
+
29 | beforeEach(() => {
|
|
44
|
+
30 | jest.resetAllMocks();
|
|
45
|
+
|
|
46
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
47
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
48
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
49
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
50
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
51
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
52
|
+
at renderHook (node_modules/@testing-library/react/dist/pure.js:318:7)
|
|
53
|
+
at setup (src/components/ContactSidebar/context/__tests__/SidebarDataContext.test.tsx:27:31)
|
|
54
|
+
at Object.setup (src/components/ContactSidebar/context/__tests__/SidebarDataContext.test.tsx:38:20)
|
|
55
|
+
|
|
56
|
+
(node:60944) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
57
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
58
|
+
PASS src/components/IntegrationButtonIcon/__tests__/IntegrationButtonIcon.test.tsx (19.636 s)
|
|
59
|
+
● Console
|
|
60
|
+
|
|
61
|
+
console.error
|
|
62
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
63
|
+
|
|
64
|
+
40 |
|
|
65
|
+
41 | it.each(['light', 'dark'] as const)('uses the custom %s color for a configured Lucide icon', mode => {
|
|
66
|
+
> 42 | const { container } = render(preview(colors, mode));
|
|
67
|
+
| ^
|
|
68
|
+
43 | const svg = container.querySelector('svg');
|
|
69
|
+
44 | expect(svg).toHaveClass('lucide-receipt');
|
|
70
|
+
45 | expect(svg).toHaveAttribute('stroke', mode === 'light' ? '#2563eb' : '#fbbf24');
|
|
71
|
+
|
|
72
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
73
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
74
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
75
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
76
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
77
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
78
|
+
at src/components/IntegrationButtonIcon/__tests__/IntegrationButtonIcon.test.tsx:42:31
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
Test Suites: 3 passed, 3 total
|
|
82
|
+
Tests: 39 passed, 39 total
|
|
83
|
+
Snapshots: 0 total
|
|
84
|
+
Time: 23.871 s
|
|
85
|
+
Ran all test suites matching /src\\components\\ContactSidebar\\context\\__tests__\\SidebarDataContext.test.tsx|src\\components\\ContactSidebar\\hooks\\__tests__\\useConversationHistory.test.tsx|src\\components\\IntegrationButtonIcon\\__tests__\\IntegrationButtonIcon.test.tsx/i.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
|
|
2
|
+
> @trii/components@3.1.10 test
|
|
3
|
+
> jest src/components/ContactSidebar/__tests__/tabErrors.test.tsx src/components/ContactSidebar/__tests__/SidebarContent.test.tsx src/components/ContactSidebar/context/__tests__/SidebarDataContext.test.tsx
|
|
4
|
+
|
|
5
|
+
(node:24152) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
6
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
7
|
+
PASS src/components/ContactSidebar/context/__tests__/SidebarDataContext.test.tsx (13.098 s)
|
|
8
|
+
● Console
|
|
9
|
+
|
|
10
|
+
console.error
|
|
11
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
12
|
+
|
|
13
|
+
25 | const calendar = jest.mocked(calendarApi);
|
|
14
|
+
26 | const wrapper = ({children}: {children:React.ReactNode}) => <SidebarDataProvider>{children}</SidebarDataProvider>;
|
|
15
|
+
> 27 | const setup = () => renderHook(() => useSidebarData(), {wrapper});
|
|
16
|
+
| ^
|
|
17
|
+
28 | const input = (names=['a.txt']) => ({target:{files:names.map(name => new File(['content'],name,{type:'text/plain'}))}} as unknown as React.ChangeEvent<HTMLInputElement>);
|
|
18
|
+
29 | beforeEach(() => {
|
|
19
|
+
30 | jest.resetAllMocks();
|
|
20
|
+
|
|
21
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
22
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
23
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
24
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
25
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
26
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
27
|
+
at renderHook (node_modules/@testing-library/react/dist/pure.js:318:7)
|
|
28
|
+
at setup (src/components/ContactSidebar/context/__tests__/SidebarDataContext.test.tsx:27:31)
|
|
29
|
+
at Object.setup (src/components/ContactSidebar/context/__tests__/SidebarDataContext.test.tsx:38:20)
|
|
30
|
+
|
|
31
|
+
(node:38432) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
32
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
33
|
+
PASS src/components/ContactSidebar/__tests__/SidebarContent.test.tsx (18.67 s)
|
|
34
|
+
● Console
|
|
35
|
+
|
|
36
|
+
console.error
|
|
37
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
38
|
+
|
|
39
|
+
28 | });
|
|
40
|
+
29 | it('leaves retry accessible when initial loading fails', () => {
|
|
41
|
+
> 30 | render(<SidebarContent conversation={null} active />);
|
|
42
|
+
| ^
|
|
43
|
+
31 | expect(screen.getByRole('button', { name: 'retry' })).toBeVisible();
|
|
44
|
+
32 | expect(screen.queryByRole('progressbar')).not.toBeInTheDocument();
|
|
45
|
+
33 | });
|
|
46
|
+
|
|
47
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
48
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
49
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
50
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
51
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
52
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
53
|
+
at Object.<anonymous> (src/components/ContactSidebar/__tests__/SidebarContent.test.tsx:30:9)
|
|
54
|
+
|
|
55
|
+
(node:38532) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
56
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
57
|
+
PASS src/components/ContactSidebar/__tests__/tabErrors.test.tsx (28.523 s)
|
|
58
|
+
● Console
|
|
59
|
+
|
|
60
|
+
console.error
|
|
61
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
62
|
+
|
|
63
|
+
26 | it('reopens Documents with a pending upload without accessing a null lastUploaded',()=>{
|
|
64
|
+
27 | mockResource={...mockResource,toUpload:[{id:'pending',fileName:'pending.txt'}],isUploading:true,lastUploaded:null};
|
|
65
|
+
> 28 | render(<ContactFiles contactId="A"/>);
|
|
66
|
+
| ^
|
|
67
|
+
29 | expect(screen.getByRole('progressbar')).toBeVisible();expect(screen.getByText('pending.txt')).toBeVisible();
|
|
68
|
+
30 | expect(mockLegacyRegister).not.toHaveBeenCalled();
|
|
69
|
+
31 | });
|
|
70
|
+
|
|
71
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
72
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
73
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
74
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
75
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
76
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
77
|
+
at Object.<anonymous> (src/components/ContactSidebar/__tests__/tabErrors.test.tsx:28:8)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
Test Suites: 3 passed, 3 total
|
|
81
|
+
Tests: 30 passed, 30 total
|
|
82
|
+
Snapshots: 0 total
|
|
83
|
+
Time: 31.584 s
|
|
84
|
+
Ran all test suites matching /src\\components\\ContactSidebar\\__tests__\\tabErrors.test.tsx|src\\components\\ContactSidebar\\__tests__\\SidebarContent.test.tsx|src\\components\\ContactSidebar\\context\\__tests__\\SidebarDataContext.test.tsx/i.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|