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 TestRenderer from 'react-test-renderer'; | |
import TextField from './TextField'; | |
function MyComponent() { | |
return <TextField placeholder="bar" />; | |
} | |
const testRenderer = TestRenderer.create(<MyComponent />); | |
const testInstance = testRenderer.toJSON(); |
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
#!/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" |