arichter83 / meteor-react-typescript-nightwatch

Meteor boilerplate with react, typescript, nightwatch and jest!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

git clone https://github.com/arichter83/meteor-react-typescript-nightwatch.git
npm install
meteor

Running unit test with jest

The jest tests are using the "react-test-renderer" and "meteor-jest-stubs" (https://github.com/tomscholz/meteor-jest-stubs):

npm run test

Running end-to-end (e2e) tests with nightwatch

Open three terminals and run these commands

Typescript compiler (-w will run on any file change):

tsc -w

Run meteor server:

meteor

Run nightwatch (with config/nightwatch.json) and Chrome:

npm run test-nightwatch

Steps that created this boilerplate

meteor create --react meteor-react-typescript-nightwatch
cd meteor-react-typescript-nightwatch
npm install typescript
meteor add adornis:typescript
npm install @types/meteor @types/react @types/react-dom
npm install nightwatch chromedriver @types/nightwatch

And all the changes in the code as seen in this repository.

About

Meteor boilerplate with react, typescript, nightwatch and jest!


Languages

Language:JavaScript 61.5%Language:TypeScript 37.1%Language:HTML 1.0%Language:CSS 0.5%