node.js - Add Mocha tests to Quasar and Vue.js -


i moved vue.js quasar (which set of components vue.js applications)

i have 2 different applications, 1 written using vue-cli , 1 quasar-cli. 1 vue-cli has test structure in place, can execute npm run unit , finds mocha tests , run them.

i have copied same structure quasar project. builds , run in dev mode correctly when execute command:

cross-env babel_env=test karma start test/unit/karma.conf.js --single-run 

i these errors:

  • typescript emitted no output ..\src\sfc.d.ts
  • module parse failed: ..\src\index.html unexpected token (1:0) may need appropriate loader handle file type.
  • module not found: error: can't resolve 'quasar/dist/quasar.start.css' in '..\src'

somehow missing configuration needed before start karma. clue? in vue.js using typescript same configuration working fine.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -