TypeScript Testing

Open-source TypeScript projects categorized as Testing

Top 23 TypeScript Testing Projects

  • GitHub repo puppeteer

    Headless Chrome Node.js API

    Project mention: help with scraping website that requires SSL cert | reddit.com/r/node | 2021-03-04

    I believe so eg https://github.com/puppeteer/puppeteer/issues/1319#issuecomment-371503788

  • GitHub repo storybook

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

    Project mention: Build, test and release a React component library with Storybook | dev.to | 2021-03-06


  • GitHub repo jest

    Delightful JavaScript Testing.

    Project mention: Image Snapshot Testing with Mocha | dev.to | 2021-03-05

    Snapshot testing is a testing mechanism that for long has seemed to be exclusive to Jest. The main idea is to generate expected values into a separate file and to compare the actual tested values with these saved values. It is also possible to update snapshots by passing an environment variable. This testing approach is great for complex data like large strings, DOM content, or images.

  • GitHub repo Playwright

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

    Project mention: When you forget to call the quit() method on your Selenium browsers | reddit.com/r/programminghorror | 2021-03-06

    Anyone still using Selenium should give Playwright a try, it supports Chromium, Firefox, and WebKit, and has APIs for JS & TS, Python, Java, and C#. It’s made by a team of devs at MS who were formerly at Google building Puppeteer.

  • GitHub repo cosmos-js

    Sandbox for developing and testing UI components in isolation

    Project mention: React Cosmos – Build UIs at Scale | news.ycombinator.com | 2021-03-01
  • GitHub repo WebdriverIO

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

    Project mention: Evaluation of Microsoft Playwright | dev.to | 2021-03-04

    Selenium (WebdriverIO)

  • GitHub repo intern

    A next-generation code testing stack for JavaScript.

  • GitHub repo Cucumber.js

    Cucumber for JavaScript

    Project mention: Apple has threatened to remove Amphetamine from the App Store | news.ycombinator.com | 2021-01-01

    No but in software it's normal to have metaphorical names. I don't expect to be able to make a salad with cucumber js or have tea time with chai



  • 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 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: news.ycombinator.com | 2021-02-18

    In that case you might also be interested in Garden (https://github.com/garden-io/garden). It's an open source tool made for developing distributed systems / micro services. It abstracts most of the gnarly parts of K8s away and allows you to opt into them as needed. Full disclosure, I am affiliated so apologies for the shameless plug. But figured it might of interest to you.

  • GitHub repo fast-check

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

    Project mention: Property-based testing in Typescript: Tell fast-check what properties you want to test and it will generate high-coverage tests for you! | reddit.com/r/programming | 2021-02-27
  • GitHub repo Python

    This extension is now maintained in the Microsoft fork.

  • GitHub repo cypress-realworld-app

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

    Project mention: Cypress Tip: Don't Overuse the Visibility Assertion | dev.to | 2021-02-26

    Let's say, for example, that our application is the Real World App and we need to assert that upon navigating to Home the avatar at the top left is visible. We could write the test like this:

  • GitHub repo spectator

    🦊 🚀 A Powerful Tool to Simplify Your Angular Tests

    Project mention: I need help about what to test in my angular app | reddit.com/r/Angular2 | 2021-02-12
  • 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: Setup in-memory database for testing Node.js and Mongoose | dev.to | 2021-02-16

    I've been working on creating an application using Node.js and Mongoose where all data stored in the cloud MongoDB Atlas. My goal was to test API endpoints and write some unit tests, for that I found this package called mongodb-memory-server, which allows me to create a connection to the MongoDB server from my cache folder without a need to use cloud test database or installing mongodb client.

  • 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 mockttp

    Powerful friendly HTTP mock server & proxy

    Project mention: Web Weekly #8 | dev.to | 2021-02-28

    Let's come to Frontend Developers' favourite topic: CORS requests ( Cross-Origin Resource Sharing). Tim Perry, who runs HTTP toolkit, explained what CORS and pre-flight requests are and shared how you can cache the OPTIONS request responses in multiple programming languages.

  • 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.

  • GitHub repo nut.js

    Native UI testing / controlling with node

    Project mention: Migrating a non-trivial Travis CI pipeline to GitHub Actions | dev.to | 2021-01-08

    There’s quite a lot of duplication in our workflows which I’d like to reduce. Something similar to how GitLab CI handles it would be nice, but it looks like it has yet to be supported by GitHub Actions.

  • GitHub repo jest-playwright

    Running tests using Jest & Playwright 🚀

    Project mention: Evaluation of Microsoft Playwright | dev.to | 2021-03-04

    Jest is a delightful JavaScript testing framework with a focus on simplicity. Playwright can be integrated into a project in two ways and one of them is by using the jest-playwright which has rich features like:

  • GitHub repo mugshot

    Framework independent visual testing library

    Project mention: Looking for an example of a well documented React TypeScript project | reddit.com/r/typescript | 2021-01-30

    I use tsdoc + typedoc to generate the documentation for Mugshot, a visual regression testing library. You can see the docs at http://nighttrax.github.io/mugshot/ and the code at https://github.com/NiGhTTraX/mugshot. I found it pretty useful to write the documentation close to the code so that users of the library will get a nice experience in their IDE when they hover over methods and on top of that also generate some pretty online docs.

  • GitHub repo Jooks (Jest ❤ + Hooks 🤘🏻)

    Testing hooks with Jest

  • GitHub repo best

    :trophy: Delightful Benchmarking & Performance Testing

    Project mention: 2020 Year in Review | dev.to | 2021-01-06

    10. With our thousands of employees forced to leave their offices and work remotely, we took the opportunity to develop new practices and guidelines for distributed work. We'll be better able to effectively communicate, create, and collaborate together no matter what the next year(s) hold. 9. We published a lot of blog posts! Our top three most-read posts covered security (Easily Identify Malicious Servers on the Internet with JARM), automated testing (Automating Complex End-to-end Tests), and an open source tool for Kubernetes (A Generic Sidecar Injector for Kubernetes). 8. We sponsored the first-ever virtual Grace Hopper Celebration put on by Anita Borg and extended internship offers to a slew of folks we’re looking forward to welcoming to the team next summer. 7. In a truly strange year, almost 300 employees took to the virtual stage at conferences around the world (er, in their living rooms?) to talk about the great work they’re doing. 6. It’s no secret we love open source. We headed to the StackOverflow blog to share the complexities and rewards of open sourcing corporate software projects. 5. Speaking of open source, we dropped some cool projects this year: Best, which allows you to write JavaScript benchmarks in the same way you write unit tests and integrate it into your continuous integration workflow; the AI Economist, which is an open source framework for economic policy design; and Cloudsplaining, an AWS IAM Security Assessment tool that identifies violations of least privilege and generates a risk-prioritized HTML report, among many others. 4. We launched the FOSS Fund to donate money every quarter to a project selected by our employees; a sustainable open source ecosystem is essential for our technical future. 3. The world got to meet the Salesforce Kubernetes Platform, a substrate-agnostic Kubernetes install that handles concerns for the entire runtime stack. 2. The Buildpacks project was promoted to Incubation from the Cloud Native Computing Foundation Sandbox. 1. We announced Hyperforce, a complete re-architecture of Salesforce that uses the scale & agility of the public cloud, representing a massive, multi-year, cross-company engineering effort that we’re so proud of.

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-03-06.


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

Project Stars
1 puppeteer 69,024
2 storybook 58,964
3 jest 34,373
4 Playwright 22,054
5 cosmos-js 6,759
6 WebdriverIO 6,417
7 intern 4,284
8 Cucumber.js 4,166
9 qawolf 2,562
10 garden 2,054
11 fast-check 1,997
12 Python 1,979
13 cypress-realworld-app 1,763
14 spectator 1,365
15 mongodb-memory-server 1,356
16 ts-mockito 592
17 mockttp 340
18 testcontainers-node 337
19 nut.js 304
20 jest-playwright 287
21 mugshot 104
22 Jooks (Jest ❤ + Hooks 🤘🏻) 66
23 best 45