OverviewAdds Redux infrastructure to your React app. This includes a store, a way to easily create and add reducers, and infrastructure to store your state in localstorage on web and native.
SpecificationName | Status | Description ---- | ------ | -----------
false| Set to true if you would like generated tests to be created for you for the app.
false| Set to true if you would like to generate storybook decorators for Redux.
DependenciesThis module is dependent on
ExamplesThere are two examples for this project:
with-tests- This example is generated with
generateTests: trueso it has the infrastructure as well as generated tests.
with-storybook- This example is generated with
storybook: trueso it contains storybook decorators to use when rendering with Redux.
TestingModule tests are defined using a
test/scenarios.yamlfile. This file defines the set of example gigs that we generate as part of integration testing. To run all tests, run
yarn testat the root of this module.
Each scenario is generated in
test/scenario/<name>which you can then
cdinto and run the actual app. For a scenario called
default, this is done via:
cd test/scenario/default yarn install # Run tests. yarn test # Start the app. yarn start