Warning: This article was written in 2020, the content might be out of date.
Warning: This article was written in 2020, the content might be out of date.
Categories: vue, laravel, testing
tl;dr version of getting Vue unit testing starting on a Laravel app.
scripts
to package.json
setup.js
require('jsdom-global')()
global.expect = require('expect')
package.json
"test": "mochapack --webpack-config node_modules/laravel-mix/setup/webpack.config.js --require tests/Vue/setup.js tests/Vue/component