@truedat/qx 8.12.5 → 8.12.7

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.
Files changed (81) hide show
  1. package/package.json +3 -3
  2. package/src/components/common/__tests__/ClauseViewer.spec.js +2 -1
  3. package/src/components/common/__tests__/DescriptionInput.spec.js +2 -1
  4. package/src/components/common/__tests__/TypeSelector.spec.js +1 -1
  5. package/src/components/common/expressions/__tests__/Clauses.spec.js +2 -1
  6. package/src/components/common/expressions/__tests__/Condition.spec.js +2 -1
  7. package/src/components/common/expressions/__tests__/ConstantSelector.spec.js +4 -1
  8. package/src/components/common/expressions/__tests__/Expression.spec.js +6 -1
  9. package/src/components/common/expressions/__tests__/FieldSelector.spec.js +1 -1
  10. package/src/components/common/expressions/__tests__/FunctionArgs.spec.js +4 -1
  11. package/src/components/common/expressions/__tests__/FunctionSelector.spec.js +13 -1
  12. package/src/components/common/expressions/__tests__/ParamSelector.spec.js +2 -1
  13. package/src/components/common/expressions/__tests__/ShapeSelector.spec.js +2 -1
  14. package/src/components/common/expressions/__tests__/useWatchParams.spec.js +1 -1
  15. package/src/components/common/expressions/constantInputs/__tests__/AnySelector.spec.js +4 -1
  16. package/src/components/common/expressions/constantInputs/__tests__/BooleanSelector.spec.js +2 -1
  17. package/src/components/common/expressions/constantInputs/__tests__/DefaultSelector.spec.js +2 -1
  18. package/src/components/common/resourceSelectors/__tests__/DataViewSelector.spec.js +2 -1
  19. package/src/components/common/resourceSelectors/__tests__/ReferenceDatasetSelector.spec.js +2 -1
  20. package/src/components/dataViews/DataViewEditor.js +2 -2
  21. package/src/components/dataViews/__tests__/DataViewEditor.spec.js +13 -8
  22. package/src/components/dataViews/__tests__/DataViewSelect.spec.js +1 -1
  23. package/src/components/dataViews/__tests__/DataViewSummary.spec.js +2 -1
  24. package/src/components/dataViews/__tests__/Queryable.spec.js +1 -1
  25. package/src/components/dataViews/__tests__/Queryables.spec.js +2 -1
  26. package/src/components/dataViews/actions/CancelButton.js +1 -1
  27. package/src/components/dataViews/actions/DeleteButton.js +1 -1
  28. package/src/components/dataViews/queryableProperties/__tests__/From.spec.js +1 -1
  29. package/src/components/dataViews/queryableProperties/__tests__/GroupBy.spec.js +2 -1
  30. package/src/components/dataViews/queryableProperties/__tests__/Join.spec.js +2 -1
  31. package/src/components/dataViews/queryableProperties/__tests__/JoinTypeIcon.spec.js +1 -1
  32. package/src/components/dataViews/queryableProperties/__tests__/Select.spec.js +2 -1
  33. package/src/components/dataViews/queryableProperties/__tests__/SelectField.spec.js +2 -1
  34. package/src/components/dataViews/queryableProperties/__tests__/Where.spec.js +2 -1
  35. package/src/components/functions/FunctionEditor.js +1 -1
  36. package/src/components/functions/FunctionsList.js +1 -1
  37. package/src/components/functions/__tests__/FunctionEdit.spec.js +5 -4
  38. package/src/components/functions/__tests__/FunctionEditor.spec.js +2 -1
  39. package/src/components/functions/__tests__/FunctionParams.spec.js +2 -1
  40. package/src/components/qualityControls/ControlPropertiesView.js +1 -1
  41. package/src/components/qualityControls/InformationForm.js +2 -1
  42. package/src/components/qualityControls/QualityControl.js +1 -1
  43. package/src/components/qualityControls/QualityControlActions.js +2 -1
  44. package/src/components/qualityControls/QualityControlEditor.js +1 -1
  45. package/src/components/qualityControls/QualityControlHistory.js +1 -1
  46. package/src/components/qualityControls/QualityControlManageDomain.js +1 -1
  47. package/src/components/qualityControls/QualityControlScores.js +3 -1
  48. package/src/components/qualityControls/QualityControlsPagination.js +1 -1
  49. package/src/components/qualityControls/__tests__/ConceptLinkNew.spec.js +4 -1
  50. package/src/components/qualityControls/__tests__/ConceptLinks.spec.js +4 -1
  51. package/src/components/qualityControls/__tests__/ControlPropertiesForm.spec.js +1 -1
  52. package/src/components/qualityControls/__tests__/ControlPropertiesSummary.spec.js +1 -1
  53. package/src/components/qualityControls/__tests__/ControlPropertiesView.spec.js +6 -5
  54. package/src/components/qualityControls/__tests__/IconPopup.spec.js +2 -1
  55. package/src/components/qualityControls/__tests__/InformationForm.spec.js +29 -17
  56. package/src/components/qualityControls/__tests__/QualityBadge.spec.js +2 -1
  57. package/src/components/qualityControls/__tests__/QualityControlQueryModal.spec.js +2 -1
  58. package/src/components/qualityControls/__tests__/QualityControlSelector.spec.js +2 -1
  59. package/src/components/qualityControls/__tests__/QualityControlsLabelResults.spec.js +1 -1
  60. package/src/components/qualityControls/__tests__/QualityControlsPagination.spec.js +1 -1
  61. package/src/components/qualityControls/__tests__/ScoreCriteria.spec.js +1 -1
  62. package/src/components/qualityControls/__tests__/ScoreCriteriaView.spec.js +1 -1
  63. package/src/components/qualityControls/__tests__/StructureLinkNew.spec.js +5 -1
  64. package/src/components/qualityControls/__tests__/StructureLinks.spec.js +6 -1
  65. package/src/components/qualityControls/controlProperties/ResourceWithValidation.js +1 -1
  66. package/src/components/qualityControls/controlProperties/__tests__/ResourceWithValidation.spec.js +5 -4
  67. package/src/components/qualityControls/scoreCriterias/Deviation.js +1 -1
  68. package/src/components/qualityControls/scoreCriterias/ErrorCount.js +1 -1
  69. package/src/components/qualityControls/scoreCriterias/Percentage.js +1 -1
  70. package/src/components/qualityControls/scoreCriterias/__tests__/Deviation.spec.js +1 -1
  71. package/src/components/qualityControls/scoreCriterias/__tests__/ErrorCount.spec.js +2 -1
  72. package/src/components/qualityControls/scoreCriterias/__tests__/Percentage.spec.js +2 -1
  73. package/src/components/scores/ScoreGroupBreadcrumbs.js +1 -1
  74. package/src/components/scores/ScoreGroupForm.js +1 -1
  75. package/src/components/scores/ScoreGroupLink.js +1 -1
  76. package/src/components/scores/ScoreGroupsTable.js +1 -1
  77. package/src/components/scores/__tests__/QualityBar.spec.js +2 -1
  78. package/src/components/scores/__tests__/ScoreContext.spec.js +1 -1
  79. package/src/components/scores/__tests__/ScoreEvents.spec.js +1 -1
  80. package/src/components/scores/__tests__/ScoreGroupMessage.spec.js +1 -1
  81. package/src/components/scores/__tests__/ScorePagination.spec.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/qx",
3
- "version": "8.12.5",
3
+ "version": "8.12.7",
4
4
  "description": "Truedat Web Quality Experience package",
5
5
  "sideEffects": false,
6
6
  "module": "src/index.js",
@@ -59,7 +59,7 @@
59
59
  "@testing-library/jest-dom": "^6.6.3",
60
60
  "@testing-library/react": "^16.3.0",
61
61
  "@testing-library/user-event": "^14.6.1",
62
- "@truedat/test": "8.12.5",
62
+ "@truedat/test": "8.12.7",
63
63
  "identity-obj-proxy": "^3.0.0",
64
64
  "jest": "^29.7.0",
65
65
  "redux-saga-test-plan": "^4.0.6"
@@ -92,5 +92,5 @@
92
92
  "semantic-ui-react": "^3.0.0-beta.2",
93
93
  "swr": "^2.3.3"
94
94
  },
95
- "gitHead": "71dd08262e6c26dd25466154c49fadb7b3449bd7"
95
+ "gitHead": "dae06fd2f915163d5f1e7e3f26c414c8ee9bf055"
96
96
  }
@@ -1,4 +1,5 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
2
3
  import ClauseViewer from "../ClauseViewer";
3
4
 
4
5
  jest.mock("@truedat/qx/hooks/useFunctions", () => {
@@ -1,5 +1,6 @@
1
1
  import userEvent from "@testing-library/user-event";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import DescriptionInput from "../DescriptionInput";
4
5
 
5
6
  const renderOpts = {
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
  import TypeSelector from "../TypeSelector";
3
3
 
4
4
  const renderOpts = {
@@ -1,6 +1,7 @@
1
1
  import { act, waitFor } from "@testing-library/react";
2
2
  import userEvent from "@testing-library/user-event";
3
- import { render, waitForLoad } from "@truedat/test/render";
3
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
4
+ import { waitForLoad } from "@truedat/test/waitForLoad";
4
5
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
5
6
  import Clauses from "../Clauses";
6
7
 
@@ -2,7 +2,8 @@ import _ from "lodash/fp";
2
2
  import userEvent from "@testing-library/user-event";
3
3
  import { waitFor } from "@testing-library/react";
4
4
  import PropTypes from "prop-types";
5
- import { render, waitForLoad } from "@truedat/test/render";
5
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
6
+ import { waitForLoad } from "@truedat/test/waitForLoad";
6
7
  import { useFormContext } from "react-hook-form";
7
8
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
8
9
  import Condition, { isConditionFunction } from "../Condition";
@@ -1,5 +1,6 @@
1
1
  import userEvent from "@testing-library/user-event";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
4
5
  import ConstantSelector from "../ConstantSelector";
5
6
 
@@ -9,6 +10,7 @@ describe("<ConstantSelector />", () => {
9
10
  <TestFormWrapper>
10
11
  <ConstantSelector />
11
12
  </TestFormWrapper>,
13
+ { fallback: <div>loading</div> },
12
14
  );
13
15
  await waitForLoad(rendered);
14
16
  expect(rendered.container).toMatchSnapshot();
@@ -22,6 +24,7 @@ describe("<ConstantSelector />", () => {
22
24
  <TestFormWrapper watcher={watcher} context={{ type: "any" }}>
23
25
  <ConstantSelector />
24
26
  </TestFormWrapper>,
27
+ { fallback: <div>loading</div> },
25
28
  );
26
29
  await waitForLoad(rendered);
27
30
 
@@ -1,5 +1,6 @@
1
1
  import userEvent from "@testing-library/user-event";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
4
5
  import Expression from "../Expression";
5
6
 
@@ -11,6 +12,7 @@ describe("<Expression />", () => {
11
12
  <TestFormWrapper>
12
13
  <Expression />
13
14
  </TestFormWrapper>,
15
+ { fallback: <div>loading</div> },
14
16
  );
15
17
  await waitForLoad(rendered);
16
18
  expect(rendered.container).toMatchSnapshot();
@@ -42,6 +44,7 @@ describe("<Expression />", () => {
42
44
  >
43
45
  <Expression />
44
46
  </TestFormWrapper>,
47
+ { fallback: <div>loading</div> },
45
48
  );
46
49
  await waitForLoad(rendered);
47
50
 
@@ -75,6 +78,7 @@ describe("<Expression />", () => {
75
78
  <TestFormWrapper watcher={watcher} context={{ type: "boolean" }}>
76
79
  <Expression />
77
80
  </TestFormWrapper>,
81
+ { fallback: <div>loading</div> },
78
82
  );
79
83
  await waitForLoad(rendered);
80
84
 
@@ -106,6 +110,7 @@ describe("<Expression />", () => {
106
110
  >
107
111
  <Expression />
108
112
  </TestFormWrapper>,
113
+ { fallback: <div>loading</div> },
109
114
  );
110
115
  await waitForLoad(rendered);
111
116
 
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
3
3
  import FieldSelector from "../FieldSelector";
4
4
 
@@ -1,6 +1,7 @@
1
1
  import userEvent from "@testing-library/user-event";
2
2
  import { waitFor } from "@testing-library/react";
3
- import { render, waitForLoad } from "@truedat/test/render";
3
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
4
+ import { waitForLoad } from "@truedat/test/waitForLoad";
4
5
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
5
6
  import FunctionArgs from "../FunctionArgs";
6
7
 
@@ -36,6 +37,7 @@ describe("<FunctionArgs />", () => {
36
37
  <TestFormWrapper>
37
38
  <FunctionArgs />
38
39
  </TestFormWrapper>,
40
+ { fallback: <div>loading</div> },
39
41
  );
40
42
  await waitForLoad(rendered);
41
43
  expect(rendered.container).toMatchSnapshot();
@@ -74,6 +76,7 @@ describe("<FunctionArgs />", () => {
74
76
  >
75
77
  <FunctionArgs />
76
78
  </TestFormWrapper>,
79
+ { fallback: <div>loading</div> },
77
80
  );
78
81
  await waitForLoad(rendered);
79
82
 
@@ -1,14 +1,25 @@
1
1
  import userEvent from "@testing-library/user-event";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
4
5
  import FunctionSelector from "../FunctionSelector";
5
6
 
7
+ beforeAll(() => {
8
+ jest.useFakeTimers();
9
+ jest.setSystemTime(new Date("2025-01-01"));
10
+ });
11
+
12
+ afterAll(() => {
13
+ jest.useRealTimers();
14
+ });
15
+
6
16
  describe("<FunctionSelector />", () => {
7
17
  it("matches the latest snapshot", async () => {
8
18
  const rendered = render(
9
19
  <TestFormWrapper>
10
20
  <FunctionSelector />
11
21
  </TestFormWrapper>,
22
+ { fallback: <div>loading</div> },
12
23
  );
13
24
  await waitForLoad(rendered);
14
25
  expect(rendered.container).toMatchSnapshot();
@@ -33,6 +44,7 @@ describe("<FunctionSelector />", () => {
33
44
  <TestFormWrapper watcher={watcher} context={{ type: "any", functions }}>
34
45
  <FunctionSelector />
35
46
  </TestFormWrapper>,
47
+ { fallback: <div>loading</div> },
36
48
  );
37
49
  await waitForLoad(rendered);
38
50
 
@@ -1,5 +1,6 @@
1
1
  import userEvent from "@testing-library/user-event";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
4
5
  import FunctionParams from "@truedat/qx/components/functions/FunctionParams";
5
6
  import ParamSelector from "../ParamSelector";
@@ -1,5 +1,6 @@
1
1
  import userEvent from "@testing-library/user-event";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
4
5
  import ShapeSelector from "../ShapeSelector";
5
6
 
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
3
3
  import useWatchParams from "../useWatchParams";
4
4
 
@@ -1,5 +1,6 @@
1
1
  import userEvent from "@testing-library/user-event";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
4
5
  import AnySelector from "../AnySelector";
5
6
 
@@ -9,6 +10,7 @@ describe("<AnySelector />", () => {
9
10
  <TestFormWrapper>
10
11
  <AnySelector />
11
12
  </TestFormWrapper>,
13
+ { fallback: <div>loading</div> },
12
14
  );
13
15
  await waitForLoad(rendered);
14
16
  expect(rendered.container).toMatchSnapshot();
@@ -22,6 +24,7 @@ describe("<AnySelector />", () => {
22
24
  <TestFormWrapper watcher={watcher}>
23
25
  <AnySelector />
24
26
  </TestFormWrapper>,
27
+ { fallback: <div>loading</div> },
25
28
  );
26
29
  await waitForLoad(rendered);
27
30
 
@@ -1,5 +1,6 @@
1
1
  import userEvent from "@testing-library/user-event";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
4
5
  import BooleanSelector from "../BooleanSelector";
5
6
 
@@ -1,5 +1,6 @@
1
1
  import userEvent from "@testing-library/user-event";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
4
5
  import DefaultSelector from "../DefaultSelector";
5
6
 
@@ -1,6 +1,7 @@
1
1
  import userEvent from "@testing-library/user-event";
2
2
  import { waitFor } from "@testing-library/react";
3
- import { render, waitForLoad } from "@truedat/test/render";
3
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
4
+ import { waitForLoad } from "@truedat/test/waitForLoad";
4
5
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
5
6
  import DataViewSelector from "../DataViewSelector";
6
7
 
@@ -1,6 +1,7 @@
1
1
  import userEvent from "@testing-library/user-event";
2
2
  import { waitFor } from "@testing-library/react";
3
- import { render, waitForLoad } from "@truedat/test/render";
3
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
4
+ import { waitForLoad } from "@truedat/test/waitForLoad";
4
5
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
5
6
  import ReferenceDatasetSelector from "../ReferenceDatasetSelector";
6
7
 
@@ -3,7 +3,7 @@ import { Fragment, useState, useEffect } from "react";
3
3
  import { useQuery } from "@apollo/client";
4
4
  import { useIntl } from "react-intl";
5
5
  import PropTypes from "prop-types";
6
- import { Loading } from "@truedat/core/components";
6
+ import Loading from "@truedat/core/components/Loading";
7
7
  import { Button, Divider, Segment } from "semantic-ui-react";
8
8
  import { useParams, useNavigate } from "react-router";
9
9
  import {
@@ -16,7 +16,7 @@ import { REFERENCE_DATASETS_HEADERS_QUERY } from "@truedat/dd/api/queries";
16
16
  import { DATA_VIEWS } from "@truedat/core/routes";
17
17
  import { useFunctions } from "@truedat/qx/hooks/useFunctions";
18
18
  import { lowerDeburrTrim } from "@truedat/core/services/sort";
19
- import { ConfirmModal } from "@truedat/core/components";
19
+ import ConfirmModal from "@truedat/core/components/ConfirmModal";
20
20
  import AdvancedDataViewEditor from "./advancedForm/AdvancedDataViewEditor";
21
21
  import SimpleDataViewEditor from "./simpleForm/SimpleDataViewEditor";
22
22
  import BreadCrumb from "./BreadCrumb";
@@ -53,14 +53,19 @@ jest.mock("@truedat/qx/hooks/useFunctions", () => ({
53
53
  useFunctions: () => mockUseFunctions(),
54
54
  }));
55
55
 
56
- jest.mock("@truedat/core/components", () => ({
57
- Loading: () => <div data-testid="loading">loading…</div>,
58
- ConfirmModal: ({ trigger, onConfirm }) => (
59
- <div data-testid="confirm-trigger" onClick={onConfirm}>
60
- {trigger}
61
- </div>
62
- ),
63
- }));
56
+ jest.mock("@truedat/core/components/Loading", () => () => (
57
+ <div data-testid="loading">loading…</div>
58
+ ));
59
+
60
+ jest.mock(
61
+ "@truedat/core/components/ConfirmModal",
62
+ () =>
63
+ ({ trigger, onConfirm }) => (
64
+ <div data-testid="confirm-trigger" onClick={onConfirm}>
65
+ {trigger}
66
+ </div>
67
+ ),
68
+ );
64
69
 
65
70
  jest.mock("../advancedForm/AdvancedDataViewEditor", () => () => (
66
71
  <div data-testid="advanced-editor" />
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
3
3
  import DataViewSelect from "../advancedForm/DataViewSelect";
4
4
 
@@ -1,4 +1,5 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
2
3
  import DataViewSummary from "../DataViewSummary";
3
4
 
4
5
  jest.mock("@truedat/qx/hooks/useFunctions", () => {
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
3
3
  import Queryable from "../advancedForm/Queryable";
4
4
 
@@ -1,6 +1,7 @@
1
1
  import userEvent from "@testing-library/user-event";
2
2
  import { waitFor } from "@testing-library/react";
3
- import { render, waitForLoad } from "@truedat/test/render";
3
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
4
+ import { waitForLoad } from "@truedat/test/waitForLoad";
4
5
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
5
6
  import Queryables from "../advancedForm/Queryables";
6
7
 
@@ -1,7 +1,7 @@
1
1
  import { Button } from "semantic-ui-react";
2
2
  import { useIntl } from "react-intl";
3
3
  import PropTypes from "prop-types";
4
- import { ConfirmModal } from "@truedat/core/components";
4
+ import ConfirmModal from "@truedat/core/components/ConfirmModal";
5
5
 
6
6
  export const CancelButton = ({ onConfirm, disabled }) => {
7
7
  const { formatMessage } = useIntl();
@@ -1,7 +1,7 @@
1
1
  import { Button } from "semantic-ui-react";
2
2
  import { useIntl } from "react-intl";
3
3
  import PropTypes from "prop-types";
4
- import { ConfirmModal } from "@truedat/core/components";
4
+ import ConfirmModal from "@truedat/core/components/ConfirmModal";
5
5
 
6
6
  export const DeleteButton = ({ disabled, onConfirm, style = {} }) => {
7
7
  const { formatMessage } = useIntl();
@@ -1,5 +1,5 @@
1
1
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
2
- import { render } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
3
 
4
4
  import From from "../From";
5
5
 
@@ -1,6 +1,7 @@
1
1
  import userEvent from "@testing-library/user-event";
2
2
  import { waitFor } from "@testing-library/react";
3
- import { render, waitForLoad } from "@truedat/test/render";
3
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
4
+ import { waitForLoad } from "@truedat/test/waitForLoad";
4
5
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
5
6
  import GroupBy from "../GroupBy";
6
7
 
@@ -1,4 +1,5 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
2
3
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
3
4
  import Join from "../Join";
4
5
 
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
 
3
3
  import JoinTypeIcon from "../JoinTypeIcon";
4
4
 
@@ -1,5 +1,6 @@
1
1
  import userEvent from "@testing-library/user-event";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
4
5
  import Select from "../Select";
5
6
 
@@ -1,5 +1,6 @@
1
1
  import userEvent from "@testing-library/user-event";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
4
5
  import SelectField from "../SelectField";
5
6
 
@@ -1,4 +1,5 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
2
3
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
3
4
  import Where from "../Where";
4
5
 
@@ -12,7 +12,7 @@ import {
12
12
  Label,
13
13
  } from "semantic-ui-react";
14
14
  import { FormProvider, useForm, Controller } from "react-hook-form";
15
- import { ConfirmModal } from "@truedat/core/components";
15
+ import ConfirmModal from "@truedat/core/components/ConfirmModal";
16
16
  import QxContext from "@truedat/qx/components/QxContext";
17
17
  import { typeToColor } from "@truedat/qx/types";
18
18
  import { DescriptionInput, TypeSelector } from "@truedat/qx/components/common";
@@ -13,7 +13,7 @@ import {
13
13
  Segment,
14
14
  Table,
15
15
  } from "semantic-ui-react";
16
- import { Pagination } from "@truedat/core/components";
16
+ import Pagination from "@truedat/core/components/Pagination";
17
17
  import { columnDecorator } from "@truedat/core/services";
18
18
  import { FUNCTION, FUNCTIONS_NEW } from "@truedat/core/routes";
19
19
  import { useFunctions } from "@truedat/qx/hooks/useFunctions";
@@ -1,4 +1,5 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
2
3
  import { useParams } from "react-router";
3
4
  import FunctionEdit from "../FunctionEdit";
4
5
 
@@ -8,9 +9,9 @@ jest.mock("react-router", () => ({
8
9
  useNavigate: jest.fn(() => jest.fn()),
9
10
  }));
10
11
 
11
- jest.mock("@truedat/core/components", () => ({
12
- Loading: () => <div data-testid="loading">loading…</div>,
13
- }));
12
+ jest.mock("@truedat/core/components/Loading", () => () => (
13
+ <div data-testid="loading">loading…</div>
14
+ ));
14
15
 
15
16
  jest.mock(
16
17
  "../FunctionEditor",
@@ -1,6 +1,7 @@
1
1
  import userEvent from "@testing-library/user-event";
2
2
  import { waitFor } from "@testing-library/react";
3
- import { render, waitForLoad } from "@truedat/test/render";
3
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
4
+ import { waitForLoad } from "@truedat/test/waitForLoad";
4
5
  import { messages } from "@truedat/qx/components/__tests__/__fixtures__/helper";
5
6
  import FunctionEditor from "../FunctionEditor";
6
7
 
@@ -1,6 +1,7 @@
1
1
  import { waitFor } from "@testing-library/react";
2
2
  import userEvent from "@testing-library/user-event";
3
- import { render, waitForLoad } from "@truedat/test/render";
3
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
4
+ import { waitForLoad } from "@truedat/test/waitForLoad";
4
5
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
5
6
  import FunctionParams from "../FunctionParams";
6
7
 
@@ -2,7 +2,7 @@ import _ from "lodash/fp";
2
2
  import PropTypes from "prop-types";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { Header, Icon, Segment, List, Label } from "semantic-ui-react";
5
- import { Loading } from "@truedat/core/components";
5
+ import Loading from "@truedat/core/components/Loading";
6
6
  import ClauseViewer from "@truedat/qx/components/common/ClauseViewer";
7
7
  import { useDataViewFetch } from "@truedat/qx/hooks/useDataViews";
8
8
  import DataViewSummary from "../dataViews/DataViewSummary";
@@ -3,7 +3,8 @@ import { lazy, useEffect } from "react";
3
3
  import { useIntl } from "react-intl";
4
4
  import { Divider, Form, Segment } from "semantic-ui-react";
5
5
  import { useFormContext, Controller } from "react-hook-form";
6
- import { DomainSelector, FieldLabel } from "@truedat/core/components";
6
+ import DomainSelector from "@truedat/core/components/DomainSelector";
7
+ import FieldLabel from "@truedat/core/components/FieldLabel";
7
8
  import ScoreCriteria, {
8
9
  defaultForMode as defaultScoreCriteriaForMode,
9
10
  } from "./ScoreCriteria";
@@ -2,7 +2,7 @@ import _ from "lodash/fp";
2
2
  import { use, useState } from "react";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { Button, List, Label, Popup, Segment } from "semantic-ui-react";
5
- import { Loading } from "@truedat/core/components";
5
+ import Loading from "@truedat/core/components/Loading";
6
6
  import QxContext from "../QxContext";
7
7
  import QualityControlManageDomain from "./QualityControlManageDomain";
8
8
  import ScoreCriteriaView from "./ScoreCriteriaView";
@@ -7,7 +7,8 @@ import { useNavigate } from "react-router";
7
7
  import { Button, Container, Icon } from "semantic-ui-react";
8
8
  import { linkTo, QUALITY_CONTROLS } from "@truedat/core/routes";
9
9
  import { useAuthorized } from "@truedat/core/hooks";
10
- import { ConfirmModal, GroupActions } from "@truedat/core/components";
10
+ import ConfirmModal from "@truedat/core/components/ConfirmModal";
11
+ import GroupActions from "@truedat/core/components/GroupActions";
11
12
  import { useScoreGroupCreate } from "../../hooks/useScoreGroups";
12
13
  import QxContext from "../QxContext";
13
14
  import { ScoreGroupPopup } from "../scores";
@@ -4,7 +4,7 @@ import PropTypes from "prop-types";
4
4
  import { useIntl } from "react-intl";
5
5
  import { Button, Divider, Grid, Icon, Form, Step } from "semantic-ui-react";
6
6
  import { FormProvider, useForm } from "react-hook-form";
7
- import { ConfirmModal } from "@truedat/core/components";
7
+ import ConfirmModal from "@truedat/core/components/ConfirmModal";
8
8
  import useActionDomains from "@truedat/core/hooks/useActionDomains";
9
9
  import QxContext from "@truedat/qx/components/QxContext";
10
10
  import { fieldsFromResource } from "@truedat/qx/components/dataViews/queryableFunctions";
@@ -4,7 +4,7 @@ import { FormattedMessage } from "react-intl";
4
4
  import { Table } from "semantic-ui-react";
5
5
  import { useIntl } from "react-intl";
6
6
  import { columnDecorator } from "@truedat/core/services";
7
- import { Loading } from "@truedat/core/components";
7
+ import Loading from "@truedat/core/components/Loading";
8
8
  import { Link } from "react-router";
9
9
  import { linkTo } from "@truedat/core/routes";
10
10
  import QxContext from "../QxContext";
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
3
3
  import { Button, Container, Form, Header } from "semantic-ui-react";
4
4
  import { useForm, Controller } from "react-hook-form";
5
5
  import { useIntl } from "react-intl";
6
- import { DomainSelector } from "@truedat/core/components";
6
+ import DomainSelector from "@truedat/core/components/DomainSelector";
7
7
  import QxContext from "../QxContext";
8
8
  import { useQualityControlUpdateDomain } from "../../hooks/useQualityControls";
9
9
 
@@ -12,7 +12,9 @@ import {
12
12
  Message,
13
13
  Table,
14
14
  } from "semantic-ui-react";
15
- import { ConfirmModal, DateTime, Loading } from "@truedat/core/components";
15
+ import ConfirmModal from "@truedat/core/components/ConfirmModal";
16
+ import DateTime from "@truedat/core/components/DateTime";
17
+ import Loading from "@truedat/core/components/Loading";
16
18
  import { columnDecorator } from "@truedat/core/services";
17
19
  import { linkTo } from "@truedat/core/routes";
18
20
  import { getQualityControlScoresColumns } from "@truedat/qx/components/selectors/getQualityControlScoresColumns";
@@ -1,4 +1,4 @@
1
- import { Pagination } from "@truedat/core/components";
1
+ import Pagination from "@truedat/core/components/Pagination";
2
2
  import { useSearchContext } from "@truedat/core/search/SearchContext";
3
3
 
4
4
  export default function QualityControlsPagination() {
@@ -1,4 +1,5 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
2
3
  import ConceptLinkNew from "../ConceptLinkNew";
3
4
  import QxContext from "../../QxContext";
4
5
 
@@ -42,6 +43,7 @@ describe("<ConceptLinkNew />", () => {
42
43
  <QxContext value={context}>
43
44
  <ConceptLinkNew />
44
45
  </QxContext>,
46
+ { fallback: <div>loading</div> },
45
47
  );
46
48
  await waitForLoad(rendered);
47
49
  expect(rendered.container).toMatchSnapshot();
@@ -52,6 +54,7 @@ describe("<ConceptLinkNew />", () => {
52
54
  <QxContext value={context}>
53
55
  <ConceptLinkNew />
54
56
  </QxContext>,
57
+ { fallback: <div>loading</div> },
55
58
  );
56
59
  await waitForLoad(rendered);
57
60
 
@@ -1,4 +1,5 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
2
3
  import ConceptLinks from "../ConceptLinks";
3
4
  import QxContext from "../../QxContext";
4
5
 
@@ -25,6 +26,7 @@ describe("<ConceptLinks />", () => {
25
26
  <QxContext value={context}>
26
27
  <ConceptLinks />
27
28
  </QxContext>,
29
+ { fallback: <div>loading</div> },
28
30
  );
29
31
  await waitForLoad(rendered);
30
32
  expect(rendered.container).toMatchSnapshot();
@@ -35,6 +37,7 @@ describe("<ConceptLinks />", () => {
35
37
  <QxContext value={context}>
36
38
  <ConceptLinks />
37
39
  </QxContext>,
40
+ { fallback: <div>loading</div> },
38
41
  );
39
42
  await waitForLoad(rendered);
40
43
 
@@ -1,5 +1,5 @@
1
1
  import { useFormContext } from "react-hook-form";
2
- import { render } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
3
  import ControlPropertiesForm from "../ControlPropertiesForm";
4
4
 
5
5
  jest.mock("react-hook-form", () => ({
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
3
3
  import { messages } from "@truedat/qx/components/__tests__/__fixtures__/helper";
4
4
  import ControlPropertiesSummary from "../ControlPropertiesSummary";
@@ -1,14 +1,15 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
2
- import { Loading } from "@truedat/core/components";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
+ import Loading from "@truedat/core/components/Loading";
3
4
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
4
5
  import { messages } from "@truedat/qx/components/__tests__/__fixtures__/helper";
5
6
  import * as dataViewsHooks from "@truedat/qx/hooks/useDataViews";
6
7
  import ControlPropertiesView from "../ControlPropertiesView";
7
8
  import { qualityControlData } from "./__fixtures__/qualityControlHelper";
8
9
 
9
- jest.mock("@truedat/core/components", () => ({
10
- Loading: jest.fn(() => <div>loading-mock</div>),
11
- }));
10
+ jest.mock("@truedat/core/components/Loading", () =>
11
+ jest.fn(() => <div>loading-mock</div>),
12
+ );
12
13
 
13
14
  jest.mock("@truedat/qx/components/dataViews/DataViewSummary", () =>
14
15
  jest.fn(() => <div>data-view-summary-mock</div>),
@@ -1,5 +1,6 @@
1
1
  import { fireEvent } from "@testing-library/react";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import { messages } from "@truedat/qx/components/__tests__/__fixtures__/helper";
4
5
  import IconPopup from "../IconPopup";
5
6
 
@@ -1,4 +1,5 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
2
3
 
3
4
  const mockUseFormContext = jest.fn();
4
5
  const mockController = jest.fn();
@@ -17,22 +18,32 @@ jest.mock("react-hook-form", () => ({
17
18
  Controller: (props) => mockController(props),
18
19
  }));
19
20
 
20
- jest.mock("@truedat/core/components", () => ({
21
- DomainSelector: ({ value, onChange }) => (
22
- <div>
23
- {`domain-selector-${value?.length || 0}`}
24
- <button type="button" onClick={() => onChange?.(null, { value: [1, 2] })}>
25
- change-domain
26
- </button>
27
- </div>
28
- ),
29
- FieldLabel: ({ children, label }) => (
30
- <div>
31
- <span>{label}</span>
32
- {children}
33
- </div>
34
- ),
35
- }));
21
+ jest.mock(
22
+ "@truedat/core/components/DomainSelector",
23
+ () =>
24
+ ({ value, onChange }) => (
25
+ <div>
26
+ {`domain-selector-${value?.length || 0}`}
27
+ <button
28
+ type="button"
29
+ onClick={() => onChange?.(null, { value: [1, 2] })}
30
+ >
31
+ change-domain
32
+ </button>
33
+ </div>
34
+ ),
35
+ );
36
+
37
+ jest.mock(
38
+ "@truedat/core/components/FieldLabel",
39
+ () =>
40
+ ({ children, label }) => (
41
+ <div>
42
+ <span>{label}</span>
43
+ {children}
44
+ </div>
45
+ ),
46
+ );
36
47
 
37
48
  jest.mock("semantic-ui-react", () => ({
38
49
  Divider: () => <div>divider</div>,
@@ -166,6 +177,7 @@ describe("<InformationForm />", () => {
166
177
  setValidDfContent={setValidDfContent}
167
178
  {...props}
168
179
  />,
180
+ { fallback: <div>loading</div> },
169
181
  );
170
182
 
171
183
  return {
@@ -1,4 +1,5 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
2
3
  import { scoreData } from "@truedat/qx/components/scores/__tests__/__fixtures__/scoreHelper";
3
4
  import QualityBadge, { QualityBadgeForSearch } from "../QualityBadge";
4
5
 
@@ -1,5 +1,6 @@
1
1
  import userEvent from "@testing-library/user-event";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import { messages } from "@truedat/qx/components/__tests__/__fixtures__/helper";
4
5
  import QualityControlQueryModal from "../QualityControlQueryModal";
5
6
 
@@ -1,5 +1,6 @@
1
1
  import userEvent from "@testing-library/user-event";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import { useSearchContext } from "@truedat/core/search/SearchContext";
4
5
  import { QualityControlSelector } from "../QualityControlSelector";
5
6
  import {
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
  import { SearchContextProvider } from "@truedat/core/search/SearchContext";
3
3
  import { messages } from "@truedat/qx/components/__tests__/__fixtures__/helper";
4
4
  import QualityControlsLabelResults from "../QualityControlsLabelResults";
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
  import { SearchContextProvider } from "@truedat/core/search/SearchContext";
3
3
  import QualityControlsPagination from "../QualityControlsPagination";
4
4
 
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
3
3
  import { messages } from "@truedat/qx/components/__tests__/__fixtures__/helper";
4
4
  import ScoreCriteria, { defaultForMode } from "../ScoreCriteria";
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
  import { messages } from "@truedat/qx/components/__tests__/__fixtures__/helper";
3
3
  import ScoreCriteriaView from "../ScoreCriteriaView";
4
4
  import { qualityControlData } from "./__fixtures__/qualityControlHelper";
@@ -1,4 +1,5 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
2
3
  import StructureLinkNew from "../StructureLinkNew";
3
4
  import QxContext from "../../QxContext";
4
5
 
@@ -52,6 +53,7 @@ describe("<StructureLinkNew />", () => {
52
53
  <QxContext value={context}>
53
54
  <StructureLinkNew />
54
55
  </QxContext>,
56
+ { fallback: <div>loading</div> },
55
57
  );
56
58
  await waitForLoad(rendered);
57
59
  expect(rendered.container).toMatchSnapshot();
@@ -62,6 +64,7 @@ describe("<StructureLinkNew />", () => {
62
64
  <QxContext value={context}>
63
65
  <StructureLinkNew />
64
66
  </QxContext>,
67
+ { fallback: <div>loading</div> },
65
68
  );
66
69
  await waitForLoad(rendered);
67
70
 
@@ -76,6 +79,7 @@ describe("<StructureLinkNew />", () => {
76
79
  <QxContext value={context}>
77
80
  <StructureLinkNew />
78
81
  </QxContext>,
82
+ { fallback: <div>loading</div> },
79
83
  );
80
84
  await waitForLoad(rendered);
81
85
 
@@ -1,4 +1,5 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
2
3
  import StructureLinks from "../StructureLinks";
3
4
  import QxContext from "../../QxContext";
4
5
 
@@ -32,6 +33,7 @@ describe("<StructureLinks />", () => {
32
33
  <QxContext value={context}>
33
34
  <StructureLinks />
34
35
  </QxContext>,
36
+ { fallback: <div>loading</div> },
35
37
  );
36
38
  await waitForLoad(rendered);
37
39
  expect(rendered.container).toMatchSnapshot();
@@ -42,6 +44,7 @@ describe("<StructureLinks />", () => {
42
44
  <QxContext value={context}>
43
45
  <StructureLinks />
44
46
  </QxContext>,
47
+ { fallback: <div>loading</div> },
45
48
  );
46
49
  await waitForLoad(rendered);
47
50
 
@@ -53,6 +56,7 @@ describe("<StructureLinks />", () => {
53
56
  <QxContext value={context}>
54
57
  <StructureLinks />
55
58
  </QxContext>,
59
+ { fallback: <div>loading</div> },
56
60
  );
57
61
  await waitForLoad(rendered);
58
62
 
@@ -71,6 +75,7 @@ describe("<StructureLinks />", () => {
71
75
  <QxContext value={contextWithoutActions}>
72
76
  <StructureLinks />
73
77
  </QxContext>,
78
+ { fallback: <div>loading</div> },
74
79
  );
75
80
  await waitForLoad(rendered);
76
81
 
@@ -2,7 +2,7 @@ import _ from "lodash/fp";
2
2
  import { use } from "react";
3
3
  import { useQuery } from "@apollo/client";
4
4
  import { useFormContext } from "react-hook-form";
5
- import { Loading } from "@truedat/core/components";
5
+ import Loading from "@truedat/core/components/Loading";
6
6
  import { lowerDeburrTrim } from "@truedat/core/services/sort";
7
7
  import { REFERENCE_DATASETS_HEADERS_QUERY } from "@truedat/dd/api/queries";
8
8
  import QxContext from "@truedat/qx/components/QxContext";
@@ -1,5 +1,6 @@
1
1
  import { FormProvider, useForm } from "react-hook-form";
2
- import { render, waitForLoad } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
+ import { waitForLoad } from "@truedat/test/waitForLoad";
3
4
  import QxContext from "@truedat/qx/components/QxContext";
4
5
  import ResourceWithValidation from "../ResourceWithValidation";
5
6
 
@@ -20,9 +21,9 @@ jest.mock("@truedat/qx/hooks/useFunctions", () => ({
20
21
  useFunctions: () => mockedUseFunctions(),
21
22
  }));
22
23
 
23
- jest.mock("@truedat/core/components", () => ({
24
- Loading: () => <div>loading-component</div>,
25
- }));
24
+ jest.mock("@truedat/core/components/Loading", () => () => (
25
+ <div>loading-component</div>
26
+ ));
26
27
 
27
28
  jest.mock("@truedat/qx/components/common/ResourceSelector", () =>
28
29
  jest.fn(({ labelId, required }) => (
@@ -3,7 +3,7 @@ import { useIntl } from "react-intl";
3
3
  import { Controller, useFormContext } from "react-hook-form";
4
4
  import { Form } from "semantic-ui-react";
5
5
  import QxContext from "@truedat/qx/components/QxContext";
6
- import { FieldLabel } from "@truedat/core/components";
6
+ import FieldLabel from "@truedat/core/components/FieldLabel";
7
7
  import { numberRules } from "@truedat/core/services/formRules";
8
8
 
9
9
  export default function Deviation() {
@@ -3,7 +3,7 @@ import { useIntl } from "react-intl";
3
3
  import { Controller, useFormContext } from "react-hook-form";
4
4
  import { Form } from "semantic-ui-react";
5
5
  import QxContext from "@truedat/qx/components/QxContext";
6
- import { FieldLabel } from "@truedat/core/components";
6
+ import FieldLabel from "@truedat/core/components/FieldLabel";
7
7
  import { numberRules } from "@truedat/core/services/formRules";
8
8
 
9
9
  export default function ErrorCount() {
@@ -3,7 +3,7 @@ import { useIntl } from "react-intl";
3
3
  import { Controller, useFormContext } from "react-hook-form";
4
4
  import { Form } from "semantic-ui-react";
5
5
  import QxContext from "@truedat/qx/components/QxContext";
6
- import { FieldLabel } from "@truedat/core/components";
6
+ import FieldLabel from "@truedat/core/components/FieldLabel";
7
7
  import { numberRules } from "@truedat/core/services/formRules";
8
8
 
9
9
  export default function Percentage() {
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
  import { waitFor } from "@testing-library/react";
3
3
  import { fireEvent } from "@testing-library/react";
4
4
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
@@ -1,6 +1,7 @@
1
1
  import userEvent from "@testing-library/user-event";
2
2
  import { waitFor } from "@testing-library/react";
3
- import { render, waitForLoad } from "@truedat/test/render";
3
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
4
+ import { waitForLoad } from "@truedat/test/waitForLoad";
4
5
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
5
6
  import ErrorCount from "../ErrorCount";
6
7
 
@@ -1,6 +1,7 @@
1
1
  import userEvent from "@testing-library/user-event";
2
2
  import { waitFor } from "@testing-library/react";
3
- import { render, waitForLoad } from "@truedat/test/render";
3
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
4
+ import { waitForLoad } from "@truedat/test/waitForLoad";
4
5
  import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
5
6
  import { messages } from "@truedat/qx/components/__tests__/__fixtures__/helper";
6
7
  import Percentage from "../Percentage";
@@ -2,7 +2,7 @@ import PropTypes from "prop-types";
2
2
  import { Breadcrumb } from "semantic-ui-react";
3
3
  import { Link } from "react-router";
4
4
  import { FormattedMessage } from "react-intl";
5
- import { DateTime } from "@truedat/core/components";
5
+ import DateTime from "@truedat/core/components/DateTime";
6
6
  import { MY_SCORE_GROUPS } from "@truedat/core/routes";
7
7
 
8
8
  export default function ScoreGroupBreadcrumbs({ timestamp }) {
@@ -3,7 +3,7 @@ import { lazy, useState } from "react";
3
3
  import { Button, Form, Header } from "semantic-ui-react";
4
4
  import PropTypes from "prop-types";
5
5
  import { useIntl } from "react-intl";
6
- import { TemplateSelector } from "@truedat/core/components";
6
+ import TemplateSelector from "@truedat/core/components/TemplateSelector";
7
7
  import { validateContent } from "@truedat/df/utils";
8
8
 
9
9
  const DynamicForm = lazy(() => import("@truedat/df/components/DynamicForm"));
@@ -1,6 +1,6 @@
1
1
  import PropTypes from "prop-types";
2
2
  import { Link } from "react-router";
3
- import { DateTime } from "@truedat/core/components";
3
+ import DateTime from "@truedat/core/components/DateTime";
4
4
  import { linkTo } from "@truedat/core/routes";
5
5
 
6
6
  export default function ScoreGroupLink({ id, inserted_at }) {
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
3
3
  import { connect } from "react-redux";
4
4
  import { FormattedMessage } from "react-intl";
5
5
  import { Table, Header, Icon } from "semantic-ui-react";
6
- import { Loading } from "@truedat/core/components";
6
+ import Loading from "@truedat/core/components/Loading";
7
7
  import { columnDecorator } from "@truedat/core/services";
8
8
  import { useSearchContext } from "@truedat/core/search/SearchContext";
9
9
  import { getMyScoreGroupsColumns } from "@truedat/qx/components/selectors/getMyScoreGroupsColumns";
@@ -1,4 +1,5 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
2
3
  import { scoreData } from "@truedat/qx/components/scores/__tests__/__fixtures__/scoreHelper";
3
4
  import ScoreContext from "../ScoreContext";
4
5
  import QualityBar from "../QualityBar";
@@ -1,5 +1,5 @@
1
1
  import { waitFor } from "@testing-library/react";
2
- import { render } from "@truedat/test/render";
2
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
3
3
  import { ScoreContextProvider, useScoreContext } from "../ScoreContext";
4
4
  import { score } from "./__fixtures__/scoreHelper";
5
5
 
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
  import { scoreData } from "@truedat/qx/components/scores/__tests__/__fixtures__/scoreHelper";
3
3
  import { messages } from "@truedat/qx/components/__tests__/__fixtures__/helper";
4
4
  import ScoreContext from "../ScoreContext";
@@ -1,4 +1,4 @@
1
- import { render } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
2
  import { messages } from "@truedat/qx/components/__tests__/__fixtures__/helper";
3
3
  import ScoreGroupMessage from "../ScoreGroupMessage";
4
4
 
@@ -1,4 +1,5 @@
1
- import { render, waitForLoad } from "@truedat/test/render";
1
+ import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
2
+ import { waitForLoad } from "@truedat/test/waitForLoad";
2
3
  import { useScoreContext } from "../../scores/ScoreContext";
3
4
  import { ScorePagination, MAX_PAGES } from "../ScorePagination";
4
5