hunk.code_window: import { onMounted, onBeforeUnmount, shallowRef } from 'vue';
   import { ActorRef, Interpreter, Subscribable } from 'xstate';
   import { isActorWithState } from './useActor';
   import { getServiceSnapshot } from './useService';
   function isService(actor: any): actor is Interpreter<any, any, any, any> {
     return 'state' in actor && 'machine' in actor;
   }
   const defaultCompare = (a, b) => a === b;
  
hunk.labels: keep replace replace replace replace replace replace replace keep keep
hunk.after_edit: import { ActorRef, Subscribable } from 'xstate';
   import { defaultGetSnapshot } from './useActor';
  
hunk.file_path: packages/xstate-vue/src/useSelector.ts
hunk.type: replace
file: const { jest: lernaAliases } = require('lerna-alias');
  
  module.exports = {
    preset: 'ts-jest',
    moduleNameMapper: lernaAliases(),
    transform: {
      // process *.vue files with vue-jest
      '^.+\\.vue$': require.resolve('vue-jest')
    }
  };
  