Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/MarcL/awesome-javascript-testing

🔧 Awesome JavaScript testing resources
https://github.com/MarcL/awesome-javascript-testing

List: awesome-javascript-testing

ava integration-testing javascript jest mocha nodejs tape testing unit-testing

Last synced: 3 months ago
JSON representation

🔧 Awesome JavaScript testing resources

Awesome Lists containing this project

README

        

# Awesome JavaScript Testing [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)

> Awesome JavaScript testing resources and tips

*Please read the [contribution guidelines](contributing.md) before contributing.*

## Contents

- [Articles](#articles)
- [Tools](#tools)
- [Videos](#videos)
- [Tips](#tips)
- [FAQ](#faq)
- [Documentation](#documentation)

## Articles

- [JavaScript Testing for Beginners Course](https://www.marclittlemore.com/courses/javascript-testing-beginners-course/?signup=github-mini-course)
- [Introduction To JavaScript Unit Testing](https://www.smashingmagazine.com/2012/06/introduction-to-javascript-unit-testing/)
- [How To Write High Quality Unit Tests](http://www.marclittlemore.com/how-to-write-high-quality-unit-tests/)
- [Test Double](https://www.martinfowler.com/bliki/TestDouble.html)
- [Mocks Aren't Stubs](https://martinfowler.com/articles/mocksArentStubs.html)
- [Migrating To Jest](https://medium.com/@kentcdodds/migrating-to-jest-881f75366e7e#.lgwnxihkn)
- [5 Questions Every Unit Test Must Answer](https://medium.com/javascript-scene/what-every-unit-test-needs-f6cd34d9836d#.22w7tm5rq)
- [How To Unit Test Express Routes](http://www.marclittlemore.com/how-to-unit-test-express-routes/)
- [The Outrageous Cost Of Skipping TDD & Code Reviews](https://medium.com/javascript-scene/the-outrageous-cost-of-skipping-tdd-code-reviews-57887064c412#.82dalpsq2)
- [5 Common Misconceptions About TDD & Unit Tests](https://medium.com/javascript-scene/5-common-misconceptions-about-tdd-unit-tests-863d5beb3ce9#.kewnnyeo1)
- [Why I Use Tape Instead Of Mocha & So Should You](https://medium.com/javascript-scene/why-i-use-tape-instead-of-mocha-so-should-you-6aa105d8eaf4#.uhlgy4nwu)
- [Where To Put Code In Mocha/Jasmine Tests](https://medium.com/@kentcdodds/where-to-put-code-in-mocha-jasmine-tests-24aade62fd7e#.o6ma53itg)
- [React Unit Testing With Mocha And Enzyme](https://medium.freecodecamp.com/react-unit-testing-with-mocha-and-enzyme-77d18b6875cb#.g5vbt63j6)
- [Is TDD Dead?](https://martinfowler.com/articles/is-tdd-dead/)
- [Testing Asynchronous JavaScript](https://martinfowler.com/articles/asyncJS.html)
- [JavaScript Testing Tools Showdown: Sinon.js vs TestDouble.js](https://gist.github.com/searls/646d68bfb284af3956a294b55f14bad9)
- [Complete Guide To Testing JavaScript In 2017](https://medium.com/powtoon-engineering/a-complete-guide-to-testing-javascript-in-2017-a217b4cd5a2a?imm_mid=0f12fb&cmp=em-web-na-na-newsltr_20170426)
- [How To Structure Your Tests](https://codeutopia.net/blog/2017/05/15/quick-javascript-testing-tip-how-to-structure-your-tests/)
- [Migrating From Mocha To Jest](https://ebaytech.berlin/into-the-great-unknown-migrating-from-mocha-to-jest-3baced083c7e)
- [Chapter 3: Testing, in Refactoring JavaScript](http://refactoringjs.com/files/refactoring-javascript.pdf)
- [Chapter 4: Testing in Action, in Refactoring JavaScript](http://refactoringjs.com/files/refactoring-javascript.pdf)

## Videos

- [React + Ava Workshop](https://www.youtube.com/watch?v=UmDNx06472I&feature=youtu.be)
- [Introduction To Jest Testing Framework](https://www.youtube.com/watch?v=tvy0bSgwtTo)
- [Test JavaScript with Jest (egghead.io)](https://egghead.io/lessons/javascript-test-javascript-with-jest)
- [Testing JavaScript Applications Workshop](https://www.youtube.com/watch?v=DdqiXcYDv-8) by [Kent C Dodds](https://github.com/kentcdodds)

## Test Library Documentation

- [Mocha](https://mochajs.org/)
- [Sinon](http://sinonjs.org/docs/)
- [Chai](http://chaijs.com/api/)
- [Chai-as-promised](https://github.com/domenic/chai-as-promised)
- [Jest](https://facebook.github.io/jest/)
- [Ava](https://github.com/avajs/ava)
- [Tape](https://github.com/substack/tape)
- [TestDouble](https://github.com/testdouble/testdouble.js)
- [Enzyme](https://github.com/airbnb/enzyme/)
- [Supertest](https://github.com/visionmedia/supertest)
- [Nock](https://github.com/node-nock/nock)

## License

[![CC0](http://mirrors.creativecommons.org/presskit/buttons/88x31/svg/cc-zero.svg)](https://creativecommons.org/publicdomain/zero/1.0/)

To the extent possible under law, [Marc Littlemore](http://marclittlemore.com) has waived all copyright and related or neighboring rights to this work.