Displaying 1 to 20 from 37 results

sinon - Test spies, stubs and mocks for JavaScript.

  •    Javascript

Standalone and test framework agnostic JavaScript test spies, stubs and mocks (pronounced "sigh-non", named after Sinon, the warrior).or via sinon's browser builds available for download on the homepage. There are also npm based CDNs one can use.

sinon-chai - Extends Chai with assertions for the Sinon.JS mocking framework.

  •    Javascript

Sinon–Chai provides a set of custom assertions for using the Sinon.JS spy, stub, and mocking framework with the Chai assertion library. You get all the benefits of Chai with all the powerful tools of Sinon.JS. All of your favorite Sinon.JS assertions made their way into Sinon–Chai. We show the should syntax here; the expect equivalent is also available.

js-stack-from-scratch - 🛠️⚡ Step-by-step tutorial to build a modern JavaScript stack.

  •    Javascript

Welcome to my modern JavaScript stack tutorial: JavaScript Stack from Scratch. This is a straight-to-the-point guide to assembling a JavaScript stack. It requires some general programming knowledge, and JavaScript basics. It focuses on wiring tools together and giving you the simplest possible example for each tool. You can see this tutorial as a way to write your own boilerplate from scratch. Since the goal of this tutorial is to assemble various tools, I do not go into details about how these tools work individually. Refer to their documentation or find other tutorials if you want to acquire deeper knowledge in them.

testdouble.js - A minimal test double library for TDD with JavaScript

  •    Javascript

Welcome! Are you writing JavaScript tests and in the market for a mocking library to fake out real things for you? testdouble.js is an opinionated, carefully-designed test double library maintained by, oddly enough, a software agency that's also named Test Double. If you practice test-driven development, testdouble.js was designed to promote terse, clear, and easy-to-understand tests. There's an awful lot to cover, so please take some time and enjoy our documentation, which is designed to show you how to make the most out of test doubles in your tests.




sinon-chrome - Testing chrome extensions with Node.js

  •    Javascript

Sinon-chrome is helper tool for unit-testing chromium and Firefox extensions and apps. It mocks all extensions api with sinon stubs that allows you to run tests in Node.js without actual browser. API mocks are generated using official chromium extensions API (Firefox webextensions) schemas that ensures consistency with real API. Actual schemas are taken from Chrome 53 and Firefox 49.

PhantomXHR - Ajax mocking in PhantomJS

  •    Javascript

Unmaintained notice: As of December 22nd 2017 this project will no longer be maintained. Five years ago PhantomXHR offered a new and exciting promise of testing single page applications without implementing dependency injection and Mockist style unit tests. And for Huddle at least, it was a huge success. But like PhantomCSS, its time to move on. Control Web UI application flow with fake XHR responses. Test your UI in isolation!. A CasperJS module that wraps the XHR faking abilities of SinonJS. For testing rich Ajax driven web applications.


mock-aws-sdk-js - Create stubbed aws-sdk-js clients for testing purposes

  •    Javascript

A library that provides sinon-style stubs for aws-sdk-js service methods for use in testing.Read all about how to use sinon stubs here.

leche - Testing extensions for Mocha and Sinon

  •    Javascript

A JavaScript testing utility designed to work with Mocha and Sinon. This is intended for use both by Node.js and in browsers, so any changes must work in both locations.There are slightly different installation instructions based on where you want to use Leche.

mocha-sinon - Integration between sinon and mocha, allowing for automatic cleanup of spies

  •    Javascript

For background, please see issue #1 on this project. If you use mocha's flakey watch flag, there is experimental support for it. Note that the first method of requiring the mocha-sinon is the best way to do it.

sinon-express-mock - Simple request and response mock objects to pass into Express routes when testing using Sinon

  •    Javascript

Simple request and response mock objects to pass into Express routes when testing using Sinon. The mock objects attach Sinon spys to request methods. See src/index.js for a full list of stubbed out methods.

redux-form-test - Shows how to do unit tests and integration tests with Redux-Form

  •    Javascript

This project shows how to do unit and integrations tests with Redux-Form. This project now uses redux-form version 6. To see test examples for redux-form 5, see this tag: redux-form-5.

generator-react-webpack-scaffold - A Yeoman generator that scaffolds React application with Webpack.

  •    Javascript

A Yeoman generator that scaffolds React project with Webpack, Karma and more useful tools for you to write React application and unit tests. That's it! Now you have a fully functional React project.

boilerplate-karma-mocha-chai-requirejs - Ready to TDD boilerplate

  •    Javascript

Since ES6/7 with babel+webpack/browserefy becomes usefull this days RequireJS looks a bit outdated. ReactJS community have a lot of sample code written in ES6/7 in isomorphic style.

rethink-mock - A mocking library for unit testing rethinkdb with mocha and sinon

  •    Javascript

A mocking library for unit testing rethinkdb with sinon spies and stubs. By default, .db is missing from the r object. This is because the database is usually selected in the connection and any .db found in the code is probably left over from using the Data Explorer.

Selenium-WebdriverIO-Mocha-Chai-Sinon-Boilerplate - E2E Testing: Selenium + WebdriverIO + Mocha + Chai + Sinon

  •    Javascript

We are using Webdriverio's TestRunner, that comes with phantomjs, on top of Selenium to run all of our tests in mocha. I also included sinon so we can use it for unit testing within mocha.

mongoose-mock

  •    Javascript

mongoose-mock is used for swapping out mongoose in unit tests. Use something like proxyquire to change the dependency.

sinon-expect - Sinon Matchers for expect.

  •    Javascript

Sinon expect is a wrapper for the assertions built into sinon. See Sinon Assertions for additional documentation for each of these assertions.