hunk.code_window:   TAction extends BaseActionObject = BaseActionObject
   > {
     guard?: GuardConfig<TContext, TEvent>;
     actions?: BaseActions<TContext, TEvent, TAction>;
     internal?: boolean;
     target?: TransitionTarget<TContext, TEvent> | undefined;
     meta?: Record<string, any>;
     description?: string;
   }
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:   target?: TransitionTarget | undefined;
  
hunk.file_path: packages/core/src/types.ts
hunk.type: replace
file: import { createMachine } from '../src/index';
  import { resolveStateValue } from '../src/stateUtils';
  
  // from parallel/test3.scxml
  const flatParallelMachine = createMachine({
    id: 'fp',
    initial: 'p1',
    states: {
      p1: {
        type: 'parallel',
        states: {
          s1: {
            initial: 'p2',
            states: {
              p2: {
                type: 'parallel',
                states: {
                  s3: {
                    initial: 's3.1',
                    states: {
                      's3.1': {},
                      's3.2': {}
                    }
                  },
                  s4: {}
                }
              },
              p3: {
                type: 'parallel',
                states: {
                  s5: {},
                  s6: {}
                }
              }
            }
          },
          s2: {
            initial: 'p4',
            states: {
              p4: {
                type: 'parallel',
                states: {
                  s7: {},
                  s8: {}
                }
              },
              p5: {
                type: 'parallel',
                states: {
                  s9: {},
                  s10: {}
                }
              }
            }
          }
        }
      }
    }
  });
  
  describe('resolve()', () => {
    it('should resolve parallel states with flat child states', () => {
      const unresolvedStateValue = { p1: { s1: { p2: 's4' }, s2: { p4: 's8' } } };
  
      const resolvedStateValue = resolveStateValue(
        flatParallelMachine.root,
        unresolvedStateValue
      );
      expect(resolvedStateValue).toEqual({
        p1: { s1: { p2: { s3: 's3.1', s4: {} } }, s2: { p4: { s7: {}, s8: {} } } }
      });
    });
  });
  