recorderx icon indicating copy to clipboard operation
recorderx copied to clipboard

Jest test problem

Open leungyukshing opened this issue 5 years ago • 0 comments

I ran into some problem when I ran unit test on my vue project. It seems that the recorderx cause that problem, but I'm not sure.

The output of my command line is:

SyntaxError: Unexpected token export

   6 |       <button id="btn-stop" v-on:click="stop">stop</button>
   7 |       <button id="btn-transform" v-on:click="voice2Text">voice2Text</button>
>  8 |     </div>
   9 |     <div id="result-box">
  10 |       Recognized Result: {{result}}
  11 |     </div>

  at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:316:17)
  at Object.<anonymous> (node_modules/recorderx/lib/index.js:7:39)
  at src/components/VoiceInput.vue:8:70

leungyukshing avatar Jan 30 '20 09:01 leungyukshing