New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-stargazer

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-stargazer

Stargazer Control System

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-70%
Maintainers
1
Weekly downloads
 
Created
Source

Stargazer

Stargazer is a tool for manual testing UI regressions. It records screenshots of app screens and displays these in a browser UI for side-by-side comparison.

Using the Tool

To run the tool follow these steps in the main project directory after setting up the React Native project:

  1. Set your local computer IP for the Stargazer server configuration in your local env.js file, e.g. like this STARGAZER_SERVER: "http://10.8.0.112:9000/screenshot"

  2. Run the following commands:

npm i -g ttab // only need to install once
npm run stargazer

This will start the server and run expo in another tab.

  1. You need to open the app in an iOS and Android simulator and it will automatically run and record all the screenshots.

  2. Stop the server and run the command npm run stargazer:restore.

To view the output you can run the browser UI with the command npm run stargazer:start.

Adding new Screens

Maintaining this tool requires screen components to be added to test/ui/stargazer/StargazerRoutes.tsx' By convention, all screen components have two exports: a default export and a named export. For a screen like CreatePasscodeScreen the default export will be the component used in the actual app and the named export will be called CreatePasscodeScreenComponent (based on the file name).

This named export is used by the Stargazer tool, and simply needs to be passed mock prop data directly, whatever minimal amount of props are required to load the component. This avoids having to mock Apollo and other data sources in order to render the components correctly. Screens have to be configured in this way in order for them to be recorded by the stargazer tool.

Server and Browser UI

This directory stargazer contains the code for the server which handles recording and saving the screenshots and the client browser app which displays them.

FAQs

Package last updated on 22 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc