@truedat/dq 4.48.7 → 4.48.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 +9 -4
- package/src/components/__tests__/NewRuleImplementation.spec.js +6 -6
- package/src/components/__tests__/RuleForm.spec.js +1 -1
- package/src/components/{__test_samples__ → __tests__/__fixtures__}/NewRuleImplementationProps.js +301 -332
- package/src/components/{__test_samples__ → __tests__/__fixtures__}/RuleForm.js +0 -0
- package/src/components/{__test_samples__ → __tests__/__fixtures__}/newRuleImplementationHelper.js +188 -429
- package/src/components/__tests__/__snapshots__/NewRuleImplementation.spec.js.snap +12 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
3
|
-
"version": "4.48.
|
|
3
|
+
"version": "4.48.8",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -71,6 +71,11 @@
|
|
|
71
71
|
"enzyme-to-json/serializer"
|
|
72
72
|
],
|
|
73
73
|
"testEnvironment": "jsdom",
|
|
74
|
+
"testMatch": [
|
|
75
|
+
"**/__tests__/**/*.[jt]s?(x)",
|
|
76
|
+
"**/?(*.)+(spec|test).[jt]s?(x)",
|
|
77
|
+
"!**/__fixtures__/**"
|
|
78
|
+
],
|
|
74
79
|
"testPathIgnorePatterns": [
|
|
75
80
|
"<rootDir>/node_modules/"
|
|
76
81
|
],
|
|
@@ -88,8 +93,8 @@
|
|
|
88
93
|
},
|
|
89
94
|
"dependencies": {
|
|
90
95
|
"@apollo/client": "^3.6.4",
|
|
91
|
-
"@truedat/core": "4.48.
|
|
92
|
-
"@truedat/df": "4.48.
|
|
96
|
+
"@truedat/core": "4.48.8",
|
|
97
|
+
"@truedat/df": "4.48.8",
|
|
93
98
|
"axios": "^0.19.2",
|
|
94
99
|
"graphql": "^15.5.3",
|
|
95
100
|
"path-to-regexp": "^1.7.0",
|
|
@@ -110,5 +115,5 @@
|
|
|
110
115
|
"react-dom": ">= 16.8.6 < 17",
|
|
111
116
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
112
117
|
},
|
|
113
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "e49b195088068688520a1cb02c64127e140615e6"
|
|
114
119
|
}
|
|
@@ -8,11 +8,11 @@ import defaultMessages from "@truedat/test/messages";
|
|
|
8
8
|
import NewRuleImplementation, {
|
|
9
9
|
NewRuleImplementation as NewRuleImplementationComponent,
|
|
10
10
|
} from "../NewRuleImplementation";
|
|
11
|
-
import { newRuleImplementationProps } from "
|
|
11
|
+
import { newRuleImplementationProps } from "./__fixtures__/NewRuleImplementationProps";
|
|
12
12
|
import {
|
|
13
13
|
ruleImplementationLoaderGlobalState,
|
|
14
14
|
ruleImplementationLoaderActions,
|
|
15
|
-
} from "
|
|
15
|
+
} from "./__fixtures__/newRuleImplementationHelper";
|
|
16
16
|
|
|
17
17
|
describe("<NewRuleImplementation />", () => {
|
|
18
18
|
const createRuleImplementation = jest.fn();
|
|
@@ -130,7 +130,7 @@ describe("<NewRuleImplementation> NewRuleImplementation doSubmit", () => {
|
|
|
130
130
|
id: 11127109,
|
|
131
131
|
parent_index: 4,
|
|
132
132
|
name: "EMAIL",
|
|
133
|
-
type: "
|
|
133
|
+
type: "column",
|
|
134
134
|
},
|
|
135
135
|
value: [],
|
|
136
136
|
value_modifier: [],
|
|
@@ -219,7 +219,7 @@ describe("<NewRuleImplementation> NewRuleImplementation doSubmit", () => {
|
|
|
219
219
|
id: 11127109,
|
|
220
220
|
parent_index: 4,
|
|
221
221
|
name: "EMAIL",
|
|
222
|
-
type: "
|
|
222
|
+
type: "column",
|
|
223
223
|
},
|
|
224
224
|
value: [
|
|
225
225
|
{
|
|
@@ -229,14 +229,14 @@ describe("<NewRuleImplementation> NewRuleImplementation doSubmit", () => {
|
|
|
229
229
|
name: "EMAIL",
|
|
230
230
|
parent_index: 4,
|
|
231
231
|
path: undefined,
|
|
232
|
-
type: "
|
|
232
|
+
type: "column",
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
id: 11127116,
|
|
236
236
|
name: "PHONE_NUMBER",
|
|
237
237
|
parent_index: 4,
|
|
238
238
|
path: undefined,
|
|
239
|
-
type: "
|
|
239
|
+
type: "column",
|
|
240
240
|
},
|
|
241
241
|
],
|
|
242
242
|
},
|
|
@@ -4,7 +4,7 @@ import { render } from "@truedat/test/render";
|
|
|
4
4
|
import userEvent from "@testing-library/user-event";
|
|
5
5
|
import { multipleTemplatesMock } from "@truedat/test/mocks";
|
|
6
6
|
import RuleForm from "../RuleForm";
|
|
7
|
-
import { globalState } from "
|
|
7
|
+
import { globalState } from "./__fixtures__/RuleForm";
|
|
8
8
|
|
|
9
9
|
const rule = {
|
|
10
10
|
id: 123,
|