Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonathan Baker BakerCo

View GitHub Profile
@BakerCo
BakerCo / mix-vuejs-mocha-testing-setup
Last active Aug 1, 2019
Setup steps for testing vuejs with mocha using laravel mix
View mix-vuejs-mocha-testing-setup
npm install --save-dev @vue/test-utils mocha mochapack expect jsdom jsdom-global
# package json
"scripts": {
...,
"test": "mochapack --webpack-config=node_modules/laravel-mix/setup/webpack.config.js --require resources/js/tests/setup.js resources/js/tests/\\*\\*/\\*.spec.js",
"watch-tests": "npm run test -- --watch",
}
# setup.js
@BakerCo
BakerCo / gist:8c0e89e8c50d9e8f6472
Last active Aug 29, 2015 — forked from nghuuphuoc/gist:8282411
Install wkhtmltopdf on Centos 6 x64
View gist:8c0e89e8c50d9e8f6472
$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2
$ tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2
$ mv wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf
// In case you got the issue
// wkhtmltopdf: error while loading shared libraries:
// libfontconfig.so.1: cannot open shared object file: No such file or directory
//
// run the command below:
$ yum install urw-fonts libXext libXrender fontconfig libfontconfig.so.1