How to run Vue.js unit tests in watch mode

Running the whole set of unit tests with npm run unit everytime you make a change to a component takes several seconds. This definitely doesn’t fit my “code a little, test a little” workflow. Before I wanted to dive into webpack and the karma setup to employ something like a watch mode, I searched the Internet and found a neat solution to achieve the goal: Karma, the spectacular test runner for JavaScript, has an autoWatch option, which I added to my package. [Read More]
vuejs  karma 

Error: [vuex] vuex requires a Promise polyfill in this browser

An error message everyone finds himself surprised to see once you start unit testing Vue components which have a dependency to vuex: PhantomJS 2.1.1 (Linux 0.0.0) ERROR Error: [vuex] vuex requires a Promise polyfill in this browser. at webpack:///~/vuex/dist/vuex.esm.js:96:0 <- index.js:54757 Searching the web for the error message quickly unveils a solution on Stack Overflow: Install Babel Polyfill: npm install --save-dev babel-polyfill then include the polyfill file before your source and test files within the files section of your karma. [Read More]
vuejs  vuex