creativetimofficial / vue-paper-dashboard

Creative Tim Paper Dashboard made for Vue

Home Page:https://www.creative-tim.com/product/paper-dashboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unit test's fail

reustonium opened this issue · comments

It looks like there is some issue caused by sass when running the unit tests.

Hi @reustonium This repo only had an outdated test and doesn't have issues when running unit tests.
If you used vue-paper-dashboard-cli to scaffold the project then you should adjust test/index.js a bit.

The srcContext should contain .vue extensions like this:

const srcContext = require.context('../../src', true, /^\.\/(?!main\.js$).+\.(js|vue)$/i)
srcContext.keys().forEach(srcContext)

If this solves the issue please let me know and I will update the template repo as well

I've updated the cli repo to contain latest updates including unit tests with the official vue-test-utils. If you still have issues, let me know