One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
// EXAMPLE USAGE: | |
// export default withCavyCustomIdentifier('SomeCustomIdentifier')(SomeScreen) | |
export const withCavyCustomIdentifier = (identifier: string) => <T,>(originalComponent: ComponentType<T>) => { | |
const ComponentWithIdentifier = (props: T) => { | |
const WrappedComponent = !!originalComponent.prototype.render ? originalComponent : wrap(originalComponent) | |
const generateTestHook = useCavy() | |
return (<WrappedComponent {...props} ref={generateTestHook(identifier)} />) | |
} | |
return ComponentWithIdentifier | |
} |
This script fetches all of the files from the currently deployed version of a Firebase Hosting site. You must be signed in via the Firebase CLI and have "Site Viewer" permission on the site in question to be able to properly run the script.
npx https://gist.github.com/mbleigh/9c8680cf319ace2f506f57380da66e7d <site_name>