All Projects → solkaz → ts-detox-example

solkaz / ts-detox-example

Licence: MIT license
Example TypeScript + React-Native + Jest project that integrates Detox for writing end-to-end tests

Programming Languages

objective c
16641 projects - #2 most used programming language
typescript
32286 projects
java
68154 projects - #9 most used programming language
python
139335 projects - #7 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ts-detox-example

Express Typescript Boilerplate
A delightful way to building a RESTful API with NodeJs & TypeScript by @w3tecch
Stars: ✭ 2,293 (+4146.3%)
Mutual labels:  jest, starter-kit
nest-typescript-starter
Nest framework TypeScript starter (node.js)
Stars: ✭ 35 (-35.19%)
Mutual labels:  starter-kit, starter-project
Arc
React starter kit based on Atomic Design
Stars: ✭ 2,780 (+5048.15%)
Mutual labels:  jest, starter-kit
K2
Koa2 API template with passport, GraphQL, flowtype, knex and more.
Stars: ✭ 44 (-18.52%)
Mutual labels:  jest, starter-kit
nodejs-hackathon-boilerplate-starter-kit
Just a Hackaton/Startup Full-stack node.js starter
Stars: ✭ 37 (-31.48%)
Mutual labels:  starter-kit, starter-project
Reactjs Crud Boilerplate
Live Demo
Stars: ✭ 83 (+53.7%)
Mutual labels:  jest, starter-kit
laravel-startkit
Laravel Admin Dashboard, Admin Template with Frontend Template, for scalable Laravel projects. It is to save your time when You start with new scalable Laravel projects with many features Bootstrap, cooreui, infyom admin Generator, roles and permissions, translatable models, spatie media and much more
Stars: ✭ 55 (+1.85%)
Mutual labels:  starter-kit, starter-project
Electron React Boilerplate
A Foundation for Scalable Cross-Platform Apps
Stars: ✭ 18,727 (+34579.63%)
Mutual labels:  jest, starter-kit
botfuel-sample-starter
Starter bot using Botfuel Dialog
Stars: ✭ 24 (-55.56%)
Mutual labels:  starter-kit, starter-project
ruby-sinatra-starter-app
A starter project for Ruby On Sinatra web app projects to introduce programmers to Ruby programming.
Stars: ✭ 36 (-33.33%)
Mutual labels:  starter-kit, starter-project
Serverless Typescript Starter
🗄🙅‍♀️ Deploy your next serverless JavaScript function in seconds
Stars: ✭ 653 (+1109.26%)
Mutual labels:  jest, starter-kit
symfony-lts-docker-starter
🐳 Dockerized your Symfony project using a complete stack (Makefile, Docker-Compose, CI, bunch of quality insurance tools, tests ...) with a base according to up-to-date components and best practices.
Stars: ✭ 39 (-27.78%)
Mutual labels:  starter-kit, starter-project
Pepperoni App Kit
Pepperoni - React Native App Starter Kit for Android and iOS
Stars: ✭ 4,657 (+8524.07%)
Mutual labels:  jest, starter-kit
Iceberg
Front-End Boilerplate built with React + Babel + Webpack + SASS
Stars: ✭ 144 (+166.67%)
Mutual labels:  jest, starter-kit
Gatsby Starter
Gatsby 2.0 starter with typescript and many cools dev tools
Stars: ✭ 385 (+612.96%)
Mutual labels:  jest, starter-kit
sass-starter-pack
Sass starter files using Gulp v4.0.0 🔥
Stars: ✭ 34 (-37.04%)
Mutual labels:  starter-kit, starter-project
cloudflare-worker-app-kit
☁✨ A handy set of tools for creating a Cloudflare Worker app.
Stars: ✭ 75 (+38.89%)
Mutual labels:  jest, starter-kit
React Native Navigation Redux Starter Kit
React Native Navigation(v2) Starter Kit with Redux, Saga, ESLint, Babel, Jest and Facebook SDK 😎
Stars: ✭ 271 (+401.85%)
Mutual labels:  jest, starter-kit
materializecss starter
A Starter Boilerplate for Materializecss, ionicons, font-awesome and Animatecss
Stars: ✭ 58 (+7.41%)
Mutual labels:  starter-kit, starter-project
run-aspnetcore-basics retired
One Solution - One Project for web application development with Asp.Net Core & EF.Core. Only one web application project which used aspnetcore components; razor pages, middlewares, dependency injection, configuration, logging. To create websites with minimum implementation of asp.net core based on HTML5, CSS, and JavaScript. You can use this boi…
Stars: ✭ 15 (-72.22%)
Mutual labels:  starter-kit, starter-project

TypeScript + React-Native + Jest + Detox Example Project

This is an example React-Native project that incorporates:

  • TypeScript
    • Can be used for source code, unit tests, and end-to-end tests
  • Jest to run both your unit and end-to-end tests
    • Uses ts-jest to allow Jest to understand your TS files
  • Detox
    • Configured to support iOS and Android

This project uses emin93's react-native-template-typescript as a bootstrap.

The main goal of this project is to demonstrate how to incorporate Detox into a pre-existing TS/RN/Jest project, but you can use it as a starter template as well.

React Native CLI template

You can create a project similar to this one using the React Native CLI and react-native-template-ts-detox-jest

FAQ

Adding support for baseUrl/paths

If you want to use TypeScript's baseUrl and paths options, you'll need to configure

  • Babel (for development) - Babel won't natively transform your module paths like TypeScript would, so you'll need to provide a plugin that will mimic that behavior.
    npm install -D babel-plugin-module-resolver
    # yarn: yarn add -D babel-plugin-module-resolver
    • In babel.config.js, add the following:
    // ...
    "plugins": [
        [
            "module-resolver",
            {
                "root": [ /* Put your `baseUrl` here */ ],
                "alias": {
                    // Put your `paths` setup here
                }
            }
        ]
    ]
    // ...
  • ts-jest - Refer to this section in the ts-jest docs.
  • When running iOS, you may encounter "Multiple commands produce ..." if you're using XCode 10. This is usually fixed by forcing XCode to use the legacy build system

TODO

  • Write documentation on setting this up from scratch
  • Create a script/tool to automate creating projects with this structure

Contributing

Issues and PRs are welcome!

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].