vest 5.1.0 → 5.1.2
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/vest.development.js +21 -10
- package/dist/cjs/vest.development.js.map +1 -1
- package/dist/cjs/vest.production.js +1 -1
- package/dist/cjs/vest.production.js.map +1 -1
- package/dist/es/vest.development.js +21 -10
- package/dist/es/vest.development.js.map +1 -1
- package/dist/es/vest.production.js +1 -1
- package/dist/es/vest.production.js.map +1 -1
- package/dist/umd/vest.development.js +21 -10
- package/dist/umd/vest.development.js.map +1 -1
- package/dist/umd/vest.production.js +1 -1
- package/dist/umd/vest.production.js.map +1 -1
- package/package.json +2 -2
- package/types/vest.d.ts.map +1 -1
|
@@ -617,6 +617,15 @@ var ErrorStrings;
|
|
|
617
617
|
ErrorStrings["INCLUDE_SELF"] = "Trying to call include.when on the same field.";
|
|
618
618
|
})(ErrorStrings || (ErrorStrings = {}));
|
|
619
619
|
|
|
620
|
+
class IsolateReconciler {
|
|
621
|
+
static match(_currentNode, _historyNode) {
|
|
622
|
+
return false;
|
|
623
|
+
}
|
|
624
|
+
static reconcile(currentNode, historyNode) {
|
|
625
|
+
return (currentNode !== null && currentNode !== void 0 ? currentNode : historyNode);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
620
629
|
function isSameProfileTest(testObject1, testObject2) {
|
|
621
630
|
const { groupName: gn1 } = VestTest.getData(testObject1);
|
|
622
631
|
const { groupName: gn2, fieldName: fn2 } = VestTest.getData(testObject2);
|
|
@@ -1322,11 +1331,15 @@ function useForceSkipIfInSkipWhen(testNode) {
|
|
|
1322
1331
|
return testNode;
|
|
1323
1332
|
}
|
|
1324
1333
|
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1334
|
+
class IsolateTestReconciler extends IsolateReconciler {
|
|
1335
|
+
static match(currentNode, historyNode) {
|
|
1336
|
+
return isIsolateTest(currentNode) && isIsolateTest(historyNode);
|
|
1337
|
+
}
|
|
1338
|
+
static reconcile(currentNode, historyNode) {
|
|
1339
|
+
const reconcilerOutput = usePickNode(historyNode, currentNode);
|
|
1340
|
+
cancelOverriddenPendingTestOnTestReRun(reconcilerOutput, currentNode, historyNode);
|
|
1341
|
+
return reconcilerOutput;
|
|
1342
|
+
}
|
|
1330
1343
|
}
|
|
1331
1344
|
function usePickNode(historyNode, currentNode) {
|
|
1332
1345
|
const collisionResult = handleCollision(currentNode, historyNode);
|
|
@@ -1378,10 +1391,9 @@ function throwTestOrderError(newNode, prevNode) {
|
|
|
1378
1391
|
}
|
|
1379
1392
|
|
|
1380
1393
|
function VestReconciler(currentNode, historyNode) {
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
return null;
|
|
1394
|
+
var _a, _b;
|
|
1395
|
+
return ((_b = (_a = [IsolateTestReconciler]
|
|
1396
|
+
.find(reconciler => reconciler.match(currentNode, historyNode))) === null || _a === void 0 ? void 0 : _a.reconcile(currentNode, historyNode)) !== null && _b !== void 0 ? _b : null);
|
|
1385
1397
|
}
|
|
1386
1398
|
|
|
1387
1399
|
function group(...args) {
|
|
@@ -1644,7 +1656,6 @@ function shouldSkipDoneRegistration(callback, fieldName, output) {
|
|
|
1644
1656
|
var _a, _b;
|
|
1645
1657
|
// If we do not have any test runs for the current field
|
|
1646
1658
|
return !!(!vestUtils.isFunction(callback) ||
|
|
1647
|
-
vestUtils.numberEquals(output.testCount, 0) ||
|
|
1648
1659
|
(fieldName && vestUtils.numberEquals((_b = (_a = output.tests[fieldName]) === null || _a === void 0 ? void 0 : _a.testCount) !== null && _b !== void 0 ? _b : 0, 0)));
|
|
1649
1660
|
}
|
|
1650
1661
|
|