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
import { render, Simulate } from "vue-testing-library"; | |
import Counter from "@/components/Counter.vue"; | |
describe("Counter.vue", () => { | |
it("increments by 1 on click", () => { | |
const { getByTestId, getByText } = render(Counter); | |
Simulate.click(getByText("Increments")); | |
expect(getByTestId("count").textContent).toBe("1"); | |
}); |
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
import React from "react"; | |
import { render } from "react-dom"; | |
import ApolloClient from "apollo-boost"; | |
import { ApolloProvider } from "react-apollo"; | |
import IpCountryFinder from "./containers/IpCountryFinder"; | |
const client = new ApolloClient({ | |
uri: "https://api.graphloc.com/graphql", | |
clientState: { | |
defaults: { |
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
const ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
const path = require("path"); | |
const glob = require("glob-all"); | |
const PurgecssPlugin = require("purgecss-webpack-plugin"); | |
/** | |
* Custom PurgeCSS Extractor | |
* https://github.com/FullHuman/purgecss | |
* https://github.com/FullHuman/purgecss-webpack-plugin | |
*/ |
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
let mix = require("laravel-mix"); | |
let tailwindcss = require("tailwindcss"); | |
let glob = require("glob-all"); | |
let PurgecssPlugin = require("purgecss-webpack-plugin"); | |
/** | |
* Custom PurgeCSS Extractor | |
* https://github.com/FullHuman/purgecss | |
* https://github.com/FullHuman/purgecss-webpack-plugin | |
*/ |
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
"workbench.colorCustomizations": { | |
"statusBar.foreground": "#eeffff", | |
"statusBar.background": "#8252be", | |
"titleBar.activeForeground": "#eeefff", | |
"titleBar.activeBackground": "#282b3c" | |
}, |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' |
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
// app/Http/Middleware/AssetUrls.js | |
// Middleware to load mix-manifest.json | |
// file Laravel Mix generates | |
class AssetUrls { | |
* handle (request, response, next) { | |
const View = use('View') | |
View.global('assetUrls', function () { | |
return require('../../../public/mix-manifest.json') |
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
// https://www.neckbeardjs.com/usage | |
import Neckbeard from 'neckbeard'; | |
const nb = Neckbeard.create(); | |
// Pass your own custom styles object to be injected | |
// into the DOM dynamically using Aphrodite. | |
// You can use Neckbeard styles to compose! | |
const styles = { | |
"text": { |
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
Error: /Users/andrewdelprete/Work/Code Testing/my-app/node_modules/react-scripts/config/eslint.js: Configuration for rule "array-callback-return" is invalid: Value "warn" is the wrong type. | |
Referenced from: /Users/andrewdelprete/Work/Code Testing/my-app/package.json | |
Error: /Users/andrewdelprete/Work/Code Testing/my-app/node_modules/react-scripts/config/eslint.js: | |
Configuration for rule "array-callback-return" is invalid: | |
Value "warn" is the wrong type. |
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
import axios from 'axios' // for promise examples | |
import request from 'request' // for callback example | |
/** | |
* Services | |
*/ | |
const service = { | |
getPeople: () => axios({ url: 'http://localhost:3000/people' }), | |
getPlaces: () => axios({ url: 'http://localhost:3000/places' }) | |
} |
NewerOlder