hunk.code_window:   </div>
     <button @click="actorSend({ type: 'FINISH' })"></button>
   </template>
   <script lang="ts">
   import { defineComponent, onMounted, PropType } from 'vue';
   import { useActor } from '../src';
  
hunk.labels: keep replace keep keep keep keep keep
hunk.file_path: packages/xstate-vue/test/UseActorComponentProp.vue
hunk.type: replace
file: const spawnCommand = require('spawn-command');
  
  // spawn build first so dist files are ready by the time we start test script
  // following startup of the build watcher is going to be really fast, thanks to TS incrememental builds
  spawnCommand('npm run build', {
    stdio: 'inherit'
  }).on('exit', (exitCode) => {
    if (exitCode !== 0) {
      process.exit(exitCode);
    }
  
    const build = spawnCommand('npm run build -- -w');
  
    const test = spawnCommand('npm test -- --watch', {
      stdio: 'inherit'
    });
  
    test.on('exit', () => {
      build.kill('SIGTERM');
    });
  });
  