@lowdefy/block-dev 4.0.0-rc.11 → 4.0.0-rc.12
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.
|
@@ -34,7 +34,7 @@ const runMockMethodTests = ({ Block, examples, mocks, schema, testConfig })=>{
|
|
|
34
34
|
];
|
|
35
35
|
examples.forEach((ex)=>{
|
|
36
36
|
values.forEach((value, v)=>{
|
|
37
|
-
if (testConfig
|
|
37
|
+
if (testConfig?.methods) {
|
|
38
38
|
testConfig.methods.forEach((method)=>{
|
|
39
39
|
mocks.forEach((mock)=>{
|
|
40
40
|
test(`Mock for method: ${JSON.stringify(method)} - ${ex.id} - value[${v}] - ${mock.name}`, async ()=>{
|
package/dist/runRenderTests.js
CHANGED
|
@@ -47,8 +47,8 @@ const runRenderTests = ({ Block, examples, logger, reset = ()=>null, schema, tes
|
|
|
47
47
|
const { container } = render(/*#__PURE__*/ React.createElement(Shell, null));
|
|
48
48
|
await waitFor(()=>expect(container.firstChild).toMatchSnapshot());
|
|
49
49
|
});
|
|
50
|
-
if (testConfig
|
|
51
|
-
(validationsExamples || []).
|
|
50
|
+
if (testConfig?.validation) {
|
|
51
|
+
(validationsExamples || []).forEach((validationEx)=>{
|
|
52
52
|
test(`Render validation.status = ${validationEx.status} ${ex.id} - value[${v}]`, async ()=>{
|
|
53
53
|
// create shell to setup react hooks with getProps before render;
|
|
54
54
|
const Shell = ()=>/*#__PURE__*/ React.createElement(Block, {
|
|
@@ -62,7 +62,7 @@ const runRenderTests = ({ Block, examples, logger, reset = ()=>null, schema, tes
|
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
if (testConfig
|
|
65
|
+
if (testConfig?.required) {
|
|
66
66
|
test(`Render required = true ${ex.id} - value[${v}]`, async ()=>{
|
|
67
67
|
// create shell to setup react hooks with getProps before render;
|
|
68
68
|
const Shell = ()=>/*#__PURE__*/ React.createElement(Block, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/block-dev",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.12",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Lowdefy Block Development Tools",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@emotion/jest": "11.10.5",
|
|
40
|
-
"@lowdefy/block-utils": "4.0.0-rc.
|
|
41
|
-
"@lowdefy/helpers": "4.0.0-rc.
|
|
40
|
+
"@lowdefy/block-utils": "4.0.0-rc.12",
|
|
41
|
+
"@lowdefy/helpers": "4.0.0-rc.12",
|
|
42
42
|
"@testing-library/dom": "8.19.1",
|
|
43
43
|
"@testing-library/react": "13.4.0",
|
|
44
44
|
"@testing-library/user-event": "14.4.3",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "7f3059b6778b1cb8900b1d4456681b977521d45d"
|
|
61
61
|
}
|