vest 5.2.6 → 5.2.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.
- package/dist/cjs/vest.development.js +4 -3
- 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 +5 -4
- 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 +4 -3
- 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 +6 -6
- package/types/vest.d.ts.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { enforce } from 'n4s';
|
|
2
2
|
export { enforce } from 'n4s';
|
|
3
|
-
import { assign, tinyState, cache, isArray, isStringValue, asArray, hasOwnProperty, seq, StateMachine,
|
|
3
|
+
import { assign, tinyState, cache, isArray, isStringValue, asArray, hasOwnProperty, seq, StateMachine, invariant, isPromise, optionalFunctionValue, Predicates, isNullish, isEmpty, callEach, bindNot, either, isPositive, greaterThan, defaultTo, noop, isNotEmpty, isNotNullish, deferThrow, text, isUndefined, isNull, isFunction, numberEquals } from 'vest-utils';
|
|
4
4
|
import { Isolate, VestRuntime, IsolateSelectors, IsolateMutator, Walker, Bus, RuntimeEvents, IsolateInspector, Reconciler } from 'vestjs-runtime';
|
|
5
5
|
import { createCascade } from 'context';
|
|
6
6
|
|
|
@@ -203,10 +203,11 @@ function useLoadSuite(rootNode) {
|
|
|
203
203
|
|
|
204
204
|
const CommonStates = {
|
|
205
205
|
PENDING: 'PENDING',
|
|
206
|
+
INITIAL: 'INITIAL',
|
|
206
207
|
};
|
|
207
208
|
const State = {
|
|
208
209
|
[CommonStates.PENDING]: CommonStates.PENDING,
|
|
209
|
-
INITIAL:
|
|
210
|
+
[CommonStates.INITIAL]: CommonStates.INITIAL,
|
|
210
211
|
DONE: 'DONE',
|
|
211
212
|
};
|
|
212
213
|
const machine$1 = {
|
|
@@ -235,7 +236,8 @@ const CommonStateMachine = StateMachine(machine$1);
|
|
|
235
236
|
|
|
236
237
|
class VestIsolate {
|
|
237
238
|
static getStatus(isolate) {
|
|
238
|
-
|
|
239
|
+
var _a;
|
|
240
|
+
return (_a = isolate.status) !== null && _a !== void 0 ? _a : CommonStates.INITIAL;
|
|
239
241
|
}
|
|
240
242
|
static setStatus(isolate, status, payload) {
|
|
241
243
|
isolate.status = this.stateMachine.staticTransition(VestIsolate.getStatus(isolate), status, payload);
|
|
@@ -1322,7 +1324,6 @@ function useClosestMatchingFocus(testObject) {
|
|
|
1322
1324
|
return ((_a = child.data.match) === null || _a === void 0 ? void 0 : _a.includes(fieldName)) || child.data.matchAll;
|
|
1323
1325
|
});
|
|
1324
1326
|
}
|
|
1325
|
-
// eslint-disable-next-line complexity, max-statements
|
|
1326
1327
|
function useIsExcluded(testObject) {
|
|
1327
1328
|
const { fieldName } = VestTest.getData(testObject);
|
|
1328
1329
|
if (useIsExcludedIndividually())
|