@truedat/core 8.12.7 → 8.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/core",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.8",
|
|
4
4
|
"description": "Truedat Web Core",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@testing-library/jest-dom": "^6.6.3",
|
|
58
58
|
"@testing-library/react": "^16.3.0",
|
|
59
59
|
"@testing-library/user-event": "^14.6.1",
|
|
60
|
-
"@truedat/test": "8.12.
|
|
60
|
+
"@truedat/test": "8.12.8",
|
|
61
61
|
"identity-obj-proxy": "^3.0.0",
|
|
62
62
|
"jest": "^29.7.0",
|
|
63
63
|
"redux-saga-test-plan": "^4.0.6"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@tiptap/react": "3.31.3",
|
|
72
72
|
"@tiptap/starter-kit": "3.31.3",
|
|
73
73
|
"@xyflow/react": "^12.6.4",
|
|
74
|
-
"axios": "^1.
|
|
74
|
+
"axios": "^1.20.0",
|
|
75
75
|
"dompurify": "^3.4.11",
|
|
76
76
|
"elkjs": "^0.10.0",
|
|
77
77
|
"graphql": "^16.11.0",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"swr": "^2.3.3",
|
|
100
100
|
"turndown": "^7.2.2"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "682b801555be3f898e0502fd70a48ea32110c327"
|
|
103
103
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
4
|
-
import
|
|
4
|
+
import Label from "semantic-ui-react/dist/commonjs/elements/Label";
|
|
5
5
|
import RuleImplementationLink from "@truedat/dq/components/RuleImplementationLink";
|
|
6
6
|
import StructureNoteLink from "@truedat/dd/components/StructureNoteLink";
|
|
7
7
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import userEvent from "@testing-library/user-event";
|
|
2
|
-
import { render } from "@truedat/test/
|
|
2
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
3
3
|
import { StatusPill, ResponseCell } from "../UploadJobParser";
|
|
4
4
|
|
|
5
|
+
jest.mock("@truedat/dq/components/RuleImplementationLink", () => () => null);
|
|
6
|
+
jest.mock("@truedat/dd/components/StructureNoteLink", () => () => null);
|
|
7
|
+
|
|
5
8
|
describe("<StatusPill />", () => {
|
|
6
9
|
it("renders with correct color based on status", async () => {
|
|
7
10
|
const statuses = ["COMPLETED", "FAILED", "ERROR", "INFO", "OTHER"];
|
|
@@ -6,11 +6,6 @@ import {
|
|
|
6
6
|
useSearchContext,
|
|
7
7
|
} from "@truedat/core/search/SearchContext";
|
|
8
8
|
|
|
9
|
-
jest.mock("react-router", () => ({
|
|
10
|
-
...jest.requireActual("react-router"),
|
|
11
|
-
useLocation: jest.fn(),
|
|
12
|
-
}));
|
|
13
|
-
|
|
14
9
|
const useFilters = () => ({
|
|
15
10
|
trigger: () => ({
|
|
16
11
|
then: (callback) =>
|
|
@@ -152,10 +147,6 @@ describe("<SearchContextProvider />", () => {
|
|
|
152
147
|
};
|
|
153
148
|
|
|
154
149
|
it(`matches the latest snapshot`, async () => {
|
|
155
|
-
jest
|
|
156
|
-
.spyOn(require("react-router"), "useLocation")
|
|
157
|
-
.mockReturnValue({ pathname: "/concepts" });
|
|
158
|
-
|
|
159
150
|
const { container, findByText } = render(
|
|
160
151
|
<SearchContextProvider {...searchProps} defaultFilters={{}}>
|
|
161
152
|
<ChildComponent />
|