This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Uses Jasmine's `this` feature: | |
// https://jasmine.github.io/2.9/introduction#section-The_<code>this</code>_keyword | |
// Example without lazy evaluation: | |
const sum = (a, b) => a + b; | |
describe('No lazy eval :(', () => { | |
let a, b, total; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Jasmine v2.7 | |
import {mount} from '@vue/test-utils/dist/vue-test-utils'; | |
const Parent = { | |
name: 'Parent', | |
template: ` | |
<Child> | |
<template slot-scope="props"> | |
<slot name="content"></slot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// first run: | |
// yarn add glob-all purgecss-webpack-plugin --dev | |
/* | |
config/webpack/environment.js | |
PurgeCSS configuration for Rails 5 + Webpacker + Tailwind CSS + Vue.js | |
Optionally, put this in production.js if you only want this to apply to production. | |
For example, your app is large and you want to optimize dev compilation speed. | |
*/ |