vest 5.2.6 → 5.2.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.
@@ -204,10 +204,11 @@ function useLoadSuite(rootNode) {
204
204
 
205
205
  const CommonStates = {
206
206
  PENDING: 'PENDING',
207
+ INITIAL: 'INITIAL',
207
208
  };
208
209
  const State = {
209
210
  [CommonStates.PENDING]: CommonStates.PENDING,
210
- INITIAL: 'INITIAL',
211
+ [CommonStates.INITIAL]: CommonStates.INITIAL,
211
212
  DONE: 'DONE',
212
213
  };
213
214
  const machine$1 = {
@@ -236,7 +237,8 @@ const CommonStateMachine = vestUtils.StateMachine(machine$1);
236
237
 
237
238
  class VestIsolate {
238
239
  static getStatus(isolate) {
239
- return vestUtils.nonnullish(isolate.status);
240
+ var _a;
241
+ return (_a = isolate.status) !== null && _a !== void 0 ? _a : CommonStates.INITIAL;
240
242
  }
241
243
  static setStatus(isolate, status, payload) {
242
244
  isolate.status = this.stateMachine.staticTransition(VestIsolate.getStatus(isolate), status, payload);
@@ -1323,7 +1325,6 @@ function useClosestMatchingFocus(testObject) {
1323
1325
  return ((_a = child.data.match) === null || _a === void 0 ? void 0 : _a.includes(fieldName)) || child.data.matchAll;
1324
1326
  });
1325
1327
  }
1326
- // eslint-disable-next-line complexity, max-statements
1327
1328
  function useIsExcluded(testObject) {
1328
1329
  const { fieldName } = VestTest.getData(testObject);
1329
1330
  if (useIsExcludedIndividually())