TypeScript Testing

Open-source TypeScript projects categorized as Testing

Top 23 TypeScript Testing Projects

  • GitHub repo puppeteer

    Headless Chrome Node.js API

    Project mention: CTO wants every ticket updated every day | reddit.com/r/sysadmin | 2021-06-16

    Still don't have API tokens & still can't authenticate? No problem. Use browser automation technology, like selenium or puppeteer or playwright.

  • GitHub repo storybook

    📓 The UI component explorer. Develop, document, & test React, Vue, Angular, Web Components, Ember, Svelte & more!

    Project mention: Publish your reusable components to npm | dev.to | 2021-06-19

    import React, { FC, HTMLAttributes, ReactChild } from 'react'; import { Button, ButtonProps } from './Button/Button'; export interface Props extends HTMLAttributes { /** custom content, defaults to 'the snozzberries taste like snozzberries' */ children?: ReactChild; } // Please do not use types off of a default export module or else Storybook Docs will suffer. // see: https://github.com/storybookjs/storybook/issues/9556 /** * A custom Thing component. Neat! */ const Thing: FC = ({ children }) => { return

    {children || `the snozzberries taste like snozzberries`}
    ; }; export { Thing, Button, ButtonProps };

  • GitHub repo jest

    Delightful JavaScript Testing.

    Project mention: Understanding Jest | dev.to | 2021-06-20

    You cannot completely neglect one essential area of software development: automated testing. There are many different testing libraries or test runners available for JavaScript. However, today we'll learn about Jest, a testing library developed and used internally by Facebook, that resembles Mocha the previous king of JavaScript testing libraries.

  • GitHub repo Playwright

    Node.js library to automate Chromium, Firefox and WebKit with a single API

    Project mention: CTO wants every ticket updated every day | reddit.com/r/sysadmin | 2021-06-16

    Still don't have API tokens & still can't authenticate? No problem. Use browser automation technology, like selenium or puppeteer or playwright.

  • GitHub repo cosmos-js

    Sandbox for developing and testing UI components in isolation

    Project mention: React Cosmos – Build UIs at Scale | reddit.com/r/patient_hackernews | 2021-03-02
  • GitHub repo WebdriverIO

    Next-gen browser and mobile automation test framework for Node.js

    Project mention: Angular 12 in Depth | dev.to | 2021-06-03

    As of Angular 12, Protractor won't be included by default in new projects. Instead, the Angular CLI will provide options to use other solutions like Cypress, WebdriverIO, or TestCafe. This means that the ng e2e command should continue to be supported in the future.

  • GitHub repo ts-jest

    A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.

    Project mention: Help me understand the state of TS mocking ecosystem | reddit.com/r/typescript | 2021-05-15

    My team uses ts-jest and for mocking complex objects factoree is really awesome.

  • GitHub repo intern

    A next-generation code testing stack for JavaScript.

  • GitHub repo Cucumber.js

    Cucumber for JavaScript

    Project mention: Iniciar en el mundo del TESTING AUTOMATIZADO ✍ | dev.to | 2021-05-11
  • GitHub repo react-hooks-testing-library

    🐏 Simple and complete React hooks testing utilities that encourage good testing practices.

    Project mention: How to test React Hooks | dev.to | 2021-05-20

    It's a lucky day , Testing Library have made this project for us.

  • GitHub repo qawolf

    🐺 Create browser tests 10x faster

    Project mention: Test receiving an email in 2 minutes | dev.to | 2021-02-25

    View on GitHub

  • GitHub repo cypress-realworld-app

    A payment application to demonstrate real-world usage of Cypress testing methods, patterns, and workflows.

    Project mention: Cypress.io flakiness making me crazy | reddit.com/r/softwaretesting | 2021-06-16

    Cypress clears cookies & cache, etc. before each test. Here's some resources that may be useful. Dom Detachment Custom Commands Real World App w/ Tests & Examples

  • GitHub repo fast-check

    Property based testing framework for JavaScript (like QuickCheck) written in TypeScript

    Project mention: Property based testing | reddit.com/r/ExperiencedDevs | 2021-04-29
  • GitHub repo garden

    Automation for Kubernetes development and testing. Spin up production-like environments for development, testing, and CI on demand. Use the same configuration and workflows at every step of the process. Speed up your builds and test runs via shared result caching.

    Project mention: You Don't Need to Rebuild Your Development Docker Image on Every Code Change | news.ycombinator.com | 2021-05-31

    Garden[0] is tool we built (yes, I'm affiliated :)) that has a lot of this functionality built-in. Might fit your use case.

    We recently re-wrote the hot reload functionality to use Mutagen[1] under the hood and its insanely fast (<200ms anecdotally). It also does two way sync which can be useful. The old implementation used rsync but a lot of our Windows users struggled with that. So I figured I'd share in case that sounds familiar.

    What happens after a sync event depends on the stack, but we've had pretty good success with Entr[3]. We often have it watch a single file so that multiple watchers in a shared dev cluster don't eat up all the node's resources.

    1: https://github.com/garden-io/garden

  • GitHub repo Python

    This extension is now maintained in the Microsoft fork.

    Project mention: Attention! As of today, updating the VS Code Python extension automatically installs proprietary software on your computer! | reddit.com/r/linux | 2021-05-11

    But I mean, this doesn't prevent you from writing an open source extension that runs regardless of which version a user chooses to use, right? Users who are using the open source version of VS Code aren't forced to install the proprietary version with PyLance. The old extension is open source and even had a release just 18 hours ago - https://github.com/Microsoft/vscode-python

  • GitHub repo generatedata

    Random data generator.

    Project mention: Self-hosted alternative to Mockaroo | reddit.com/r/selfhosted | 2021-05-24

    Maybe another self-hosted service could cover hosting and be integrated with the generatedata script as the datasource. Let me know if you find something. I was just using Mockaroo this morning and considering a paid plan.

  • GitHub repo mongodb-memory-server

    Spinning up mongod in memory for fast tests. If you run tests in parallel this lib helps to spin up dedicated mongodb servers for every test file in MacOS, *nix, Windows or CI environments (in most cases with zero-config).

    Project mention: Show HN: Mongita is to MongoDB as SQLite is to SQL | news.ycombinator.com | 2021-04-20
  • GitHub repo spectator

    🦊 🚀 A Powerful Tool to Simplify Your Angular Tests

    Project mention: Jasmine or Jest for Unit Testing? | reddit.com/r/Angular2 | 2021-06-15

    https://github.com/ngneat/spectator is awesome and supports jest. (uses jasmine by default)

  • GitHub repo testing-nestjs

    A repository to show off to the community methods of testing NestJS including Unit Tests, Integration Tests, E2E Tests, pipes, filters, interceptors, GraphQL, Mongo, TypeORM, and more!

    Project mention: Anyone who would be willing to show their sample repos? | reddit.com/r/node | 2021-04-24
  • GitHub repo jest-codemods

    Codemods for migrating to Jest https://github.com/facebook/jest 👾

    Project mention: What UI testing framework do you use and what do you like/dislike about it? | reddit.com/r/Angular2 | 2021-04-29

    jest-codemods helped us a lot moving from Jasmine to Jest, removes most of the manual work

  • GitHub repo ts-mockito

    Mocking library for TypeScript

    Project mention: The Repository pattern with Typescript | dev.to | 2021-02-15

    There's a very cool library called ts-mockito, it works very well when you use dependency injection in your code (as we're doing now). It allows you to create mocks, stub function calls, and many other cool features, definitely check it out! I'm going to use it to test our AuthRepository.

  • GitHub repo testcontainers-node

    TestContainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

    Project mention: Testing in Node.js with Testcontainers | dev.to | 2021-03-13

    Luckily, Testcontainers is a great project that makes setting up external resources more comfortable by providing a programmatic interface to run Docker containers in testing scenarios. In this article, we'll be looking at a community port of Testcontainers for Node.js (testcontainers-node), and how we can run tests that rely on both a single Redis and a Redis Cluster.

  • GitHub repo mockttp

    Powerful friendly HTTP mock server & proxy

    Project mention: AWESOME WINDOWS TOOLS | dev.to | 2021-04-26

    HTTP Toolkit - HTTP debugging & mocking tool.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-06-20.


What are some of the best open-source Testing projects in TypeScript? This list will help you:

Project Stars
1 puppeteer 71,194
2 storybook 62,639
3 jest 35,476
4 Playwright 24,958
5 cosmos-js 6,932
6 WebdriverIO 6,761
7 ts-jest 4,786
8 intern 4,294
9 Cucumber.js 4,270
10 react-hooks-testing-library 3,573
11 qawolf 2,741
12 cypress-realworld-app 2,215
13 fast-check 2,195
14 garden 2,162
15 Python 1,992
16 generatedata 1,785
17 mongodb-memory-server 1,491
18 spectator 1,481
19 testing-nestjs 872
20 jest-codemods 749
21 ts-mockito 636
22 testcontainers-node 419
23 mockttp 401