Skip to content

Commit

Permalink
Add Testing other frameworks guide (#3243)
Browse files Browse the repository at this point in the history
* Add Testing other frameworks guide

* Add missing braces for willsterndev
  • Loading branch information
thymikee authored and hramos committed Apr 3, 2017
1 parent 38ca942 commit 179ad77
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ Jest can be used in projects that use [webpack](https://webpack.github.io/) to m

### Using TypeScript

To use TypeScript in your tests, install the `ts-jest` package:
To use TypeScript in your tests, install the `ts-jest` package and the types for Jest.

```
npm install --save-dev ts-jest
npm install --save-dev ts-jest @types/jest
```

then modify your `package.json` so the `jest` section looks something like:
Expand Down
2 changes: 1 addition & 1 deletion docs/MigrationGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ layout: docs
category: Guides
permalink: docs/migration-guide.html
previous: webpack
next: troubleshooting
next: testing-frameworks
---

If you'd like to try out Jest with an existing codebase, there are a number of ways to convert to Jest:
Expand Down
31 changes: 31 additions & 0 deletions docs/TestingFrameworks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
id: testing-frameworks
title: Testing other frameworks
layout: docs
category: Guides
permalink: docs/testing-frameworks.html
previous: migration-guide
next: troubleshooting
---

Although Jest may be considered React-specific test runner, in fact it is a universal testing platform, with the ability to adapt to any JavaScript library or framework. In this section we'd like to link to community posts and articles about integrating Jest into other popular JS libraries.

## Vue.js

* [Jest for all: Episode 1 — Vue.js](https://medium.com/@kentaromiura_the_js_guy/jest-for-all-episode-1-vue-js-d616bccbe186#.d573vrce2) by Cristian Carlesso ([@kentaromiura](https://twitter.com/kentaromiura))

## AngularJS

* [Testing an AngularJS app with Jest](https://medium.com/aya-experience/testing-an-angularjs-app-with-jest-3029a613251) by Matthieu Lux ([@Swiip](https://twitter.com/Swiip))

## Angular

* [Testing Angular faster with Jest](https://www.xfive.co/blog/testing-angular-faster-jest/) by Michał Pierzchała ([@thymikee](https://twitter.com/thymikee))

## MobX

* [How to Test React and MobX with Jest](https://semaphoreci.com/community/tutorials/how-to-test-react-and-mobx-with-jest) by Will Stern ([@willsterndev](https://twitter.com/willsterndev))

## Redux

* [Writing Tests](http://redux.js.org/docs/recipes/WritingTests.html) by Redux docs
2 changes: 1 addition & 1 deletion docs/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Troubleshooting
layout: docs
category: Guides
permalink: docs/troubleshooting.html
previous: migration-guide
previous: testing-frameworks
---

Uh oh, something went wrong? Use this guide to resolve issues with Jest.
Expand Down

0 comments on commit 179ad77

Please sign in to comment.