Currently, I am running unit tests within a Vue 2.0 application using PhantomJS, Karma, Mocha and Chai. Although the tests are passing successfully, I am encountering a warning message with each test indicating an issue like this:
ERROR: '[Vue warn]: Failed to resolve directive: highlightjs (found in <UnitTest>)
I am looking for a solution to either ignore these custom directive warnings or to somehow address them within the tests.
=== Another potentially related error ===
In case I purposely make one of the tests fail, an error message is displayed as follows:
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "unit"
npm ERR! node v7.6.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c4b2b1a1b7b0a5a7af84f5eaf4eaf4">[email protected]</a> unit: `cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dcaaa9b9afa8bdbfb79cedf2ecf2ec">[email protected]</a> unit script 'cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run'.
npm ERR! Ensure that you have the latest versions of node.js and npm installed.
npm ERR! If already updated, then it's likely a problem with the vuestack package,
npm ERR! not with npm itself.
npm ERR! Let the author know about the issue on your system:
npm ERR! cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run
npm ERR! Instructions on opening an issue for this project can be found through:
npm ERR! npm bugs vuestack
npm ERR! Or contact the package owner using:
npm ERR! npm owner ls vuestack
npm ERR! There may be additional logging details above.
Despite other tests passing successfully, this error occurs after all tests have been executed. Attempts were made to uninstall/reinstall node modules and switch Node versions without resolving the issue.