Skip to content

Instantly share code, notes, and snippets.

View warrenday's full-sized avatar

Warren Day warrenday

View GitHub Profile
import { runTestCases } from './test-runner';
const testCases = [
{
id: 'getBooking',
query: `
query ($id: Int!) {
getBooking (id: $id) {
id
cartReference
name: Test App
on: [push]
jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
- name: Run API in background
working-directory: packages/api
run: |
yarn install
yarn mock &
env:
SOME_ENV: 1234
@warrenday
warrenday / graphcool-autodeploy.js
Created June 22, 2018 10:36
Watch for file changes of a local graphcool service and deploy on change.
const { spawn } = require('child_process');
const watch = require('node-watch');
let commandComplete = true;
watch([
'./src',
'graphcool.yml',
'types.graphql'
], { recursive: true }, function(evt, name) {
if (!commandComplete) {