Skip to content

Instantly share code, notes, and snippets.

View georgschlenkhoff's full-sized avatar

Georg Schlenkhoff georgschlenkhoff

  • Frankfurt am Main, Germany
View GitHub Profile
#!/bin/bash
echo "Setting environment variables"
gcloud beta functions deploy functionName --env-vars-file .env.yaml
echo "Starting deployment to Google Functions"
gcloud functions deploy functionName --runtime nodejs8 --trigger-http --memory=1024MB --timeout=90s --region=europe-west3
echo "Ended deployment to Google Functions"
import React from 'react';
import TestRenderer from 'react-test-renderer';
import TextField from './TextField';
function MyComponent() {
return <TextField placeholder="bar" />;
}
const testRenderer = TestRenderer.create(<MyComponent />);
const testInstance = testRenderer.toJSON();