All the config I found quite a pain to setup so maybe this will help someone.
Any feedback appreciated.
- install node 8+
npm install --global yarn
yarn global add typescript
yarn global add jest
yarn install
yarn start
to runyarn test
to jest testsyarn storybook
to run storybookyarn lint
to run tslint
- Storybook and storyshots. Uses storyloader to auto generate all requires from
*.story.tsx
to use onstoryshots.test.ts
- Typescript config transpiles jsx for wallaby
- Expo set to preprocess ts files in
app.json
- Jest has to use ts-jest to compile ts and then babel to hoist jest.mock()
- Jest coverage to JUnit xml
- Some nice TS Lint rules
- JSDom with Enzyme setup so can use
shallow
andmount
and looks nice in jest snapshots with enzyme serializer - Prettier is awesome
- Wallaby also awesome