docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q) --force
docker system prune
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 {makeExecutableSchema} = require('graphql-tools'); | |
const {graphql} = require('graphql'); | |
// Construct a schema, using GraphQL schema language | |
const typeDefs = ` | |
directive @upper on FIELD_DEFINITION | |
type Query { | |
hello: String @upper | |
} |
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 wait from 'waait'; | |
import {MockedProvider} from "react-apollo/test-utils"; | |
import TestRenderer from 'react-test-renderer'; | |
import {Query} from "react-apollo"; | |
import gql from 'graphql-tag'; | |
const A_QUERY = gql` | |
query getSomething($name: String) { |
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
@Grapes([ | |
@Grab("org.gebish:geb-core:2.1"), | |
@Grab("org.seleniumhq.selenium:selenium-firefox-driver:3.6.0"), | |
@Grab("org.seleniumhq.selenium:selenium-support:3.6.0"), | |
@GrabExclude('org.codehaus.groovy:groovy-all')]) | |
import geb.Browser | |
import geb.Page | |
class GooglePage extends Page { |