Disunity Mod Manager for Unity games
- git clone https://github.com/disunity-hq/mod-manager.git
- yarn
- yarn devInitiates a local webserver and fires up electron.
- yarn buildOutputs a build to the projectdir/build/ folder
- yarn test [--collect-coverage]Runs all structrual and interaction tests. Optionally accepts the- ---collect-coverageflag to generate code coverage report
- Run yarn storybookto launch storybook.
In order to create a new story, simply create a *.stories.tsx file in the /src/stories/ folder. You can take a look at the test.stories.tsx file provided and the storybook docs for more information.
This project is configured with storyshot to create jest snapshots for all the stories automatically.
Snapshots are a way to verify the the structure of the rendered components don't change between updating code.
If a change is desired you can simply run yarn test -u. The -u flag tells jest to update the snapshots