TypeScript Testing

Open-source TypeScript projects categorized as Testing | Edit details

Top 23 TypeScript Testing Projects

  • GitHub repo puppeteer

    Headless Chrome Node.js API

    Project mention: Running Puppeteer under Docker | dev.to | 2022-01-14

    If you haven’t heard of Puppeteer, it’s basically a NodeJS library that allows you to run (and control) an instance of headless chrome. i.e - an instance of Google chrome without a UI. In this project, I was using it to render PDF exports of reports. Running natively, it worked like a charm. But under docker, well…I’m writing this article after all, aren’t I?

  • GitHub repo storybook

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

    Project mention: 9 Ways You Can Use React Today in 2022 | dev.to | 2022-01-21

    There is also Storybook, a great react library for building user interface components and pages in isolation. The cool part about this approach is that its also naturally great at generating documentations if you have multiple components to document:

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • GitHub repo jest

    Delightful JavaScript Testing.

    Project mention: `regeneratorRuntime` is not defined when running Jest test | reddit.com/r/codehunter | 2022-01-22

    I've determined through some reading that this is caused by babel-polyfill or regenerator-runtime not being applied correctly to Jest. However, I've tried installing both of those packages and re-running with no change in results. After reading the Jest Github issues page (Remove auto-inclusion of babel-polyfill #2755), I found out that babel-polyfill is not included automatically by Jest as of version 19. My manual installation of that package should have fixed the issue, but it did not. I've included some of the files that I think are relevant

  • GitHub repo cosmos-js

    Sandbox for developing and testing UI components in isolation

    Project mention: React Cosmos with Remix | dev.to | 2021-12-09

    Enter https://reactcosmos.org. It's an alternative to Storybook and to me looks a bit cleaner with smaller amount of boilerplate needed to get running out of the box. It runs a separate dev server with a clean UI displaying all of your component fixtures.

  • GitHub repo WebdriverIO

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

    Project mention: Browserstack vs WebDriverVersion conflict | reddit.com/r/selenium | 2021-12-15

    Can you use a breakpoint to see why chromeversion isn't being set? This may be an easier implementation with BS: https://webdriver.io/

  • GitHub repo ts-jest

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

    Project mention: Running Jest for Typescript CLI - unexpected token at import | reddit.com/r/typescript | 2022-01-22

    Anyway, I ran into this exact error this morning setting up Jest for a TS script. I fixed it by just following the getting started instructions for Jest as well as ts-jest.

  • GitHub repo Cucumber.js

    Cucumber for JavaScript

    Project mention: Gherkin style E2E Tests for a Web Application using Cucumber.js | dev.to | 2022-01-11

    But Cucumber is well-known for its native support for Behavior Driven Development (BDD).

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • GitHub repo intern

    A next-generation code testing stack for JavaScript.

  • GitHub repo react-hooks-testing-library

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

    Project mention: I’ve been struggling a lot learning Unit Testing, any general tip? | reddit.com/r/reactjs | 2022-01-07

    As for hooks, there's https://react-hooks-testing-library.com/

  • GitHub repo Cucumber

    A monorepo of common components - building blocks for implementing Cucumber in various languages.

  • GitHub repo cypress-realworld-app

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

    Project mention: Setting up a cypress automation framework inside an application project | reddit.com/r/softwaretesting | 2022-01-20

    I'll be giving an online meetup demo using the Cypress Real World App in March. It's a fantastic repo for understanding how things work in a project.

  • 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 fast-check

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

    Project mention: Fast-check: How it works | news.ycombinator.com | 2021-12-02
  • 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: Top 200 Kubernetes Tools for DevOps Engineer Like You | dev.to | 2022-01-15

    Okteto: A Tool for Cloud Native Developers - Build better applications by developing and testing your code directly in Kubernetes Tilt: Tilt manages local development instances for teams that deploy to Kubernetes - Local Kubernetes development with no stress Garden: Kubernetes from source to finish - Development orchestrator for Kubernetes, containers and functions. KuberNix - Single dependency Kubernetes clusters for local testing, experimenting and development Copper - A configuration file validator for Kubernetes ko - Build and deploy Go applications on Kubernetes Dekorate - Java annotation processors for Kubernetes Lens IDE The Kubernetes IDE Kosko - Organize Kubernetes manifests in JavaScript Telepresence - Fast, local development for Kubernetes and Openshift microservices Monokle - Desktop UI for managing Kubernetes manifests Kr8s - Desktop application made for developers that need to monitor and visualize their Kubernetes clusters in a user friendly GUI

  • 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

    A powerful, feature-rich, random test data generator.

    Project mention: Ask HN: How often do you create fake data sets? | news.ycombinator.com | 2021-11-03

    > If it were easier to do the thing I want, I'd do it all the time. What I want is to be able to point to either a database with empty tables or an SQL file and fill in the tables correctly with bogus data while respecting all the constraints. I have not found a tool that does that.

    I was thinking more of a virtual CSV file that you can query like a SQL table.

    > Sometimes, I do not have a choice and have to use something like https://www.mockaroo.com/ or https://generatedata.com/ but then I have fiddle with stuff.

    This is exactly the type of thing I was looking for, I will check them out. I do worry that each use case is too specific for a tool like this.

    Thanks for the help.

  • 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: How to write tests for applications that use MongoDB as a storage | dev.to | 2021-10-03

    The final method tries to combine both methods, 1 and 2. It uses an external package MongoDB In-Memory Server for our MongoDB.

  • GitHub repo spectator

    🦊 🚀 A Powerful Tool to Simplify Your Angular Tests

    Project mention: 7 Costly Mistakes That One Needs to Avoid in Angular Test Automation | reddit.com/r/Angular2 | 2021-10-15

    I've had huge success using spectator https://github.com/ngneat/spectator

  • GitHub repo user-event

    🐕 Simulate user events

    Project mention: Django, HTMX and Alpine.js: Modern Websites, JavaScript Optional | news.ycombinator.com | 2021-11-23

    I just tried running WinDirStat on the `node_modules` folder in a Create-React-App project I had lying around. Total size was 234 MB. Of that, 129MB was JS files. By far the biggest piece was TypeScript, which has 45MB of .js in 6 files making up its parsing and IDE language service implementation.

    Beyond that, the breakdown is:

    - .ts source files: 25MB

    - Sourcemaps: 23MB

    - Markdown: 15MB

    - JSON: 10MB

    It also looks like there's a 12MB Linux binary that was only in there as a publishing accident for the `user-event` library that has since been resolved ( https://github.com/testing-library/user-event/issues/266 ).

    Or, take Redux Toolkit, which I maintain. If you look at https://unpkg.com/browse/@reduxjs/[email protected]/ , the published package for our current version, it adds up to about 10MB on disk. But, that's because we ship three separate entry points (RTK core, RTK Query UI-agnostic core, RTK Query with React-specific additions), and for each entry point we compile the code to multiple file formats (CommonJS, ESM legacy, ESM modern, ESM with "dev" and "prod" already built in, UMD dev, UMD production), and each of those has sourcemaps. The actual amount of code that ends up in your bundle is about 20KB min+gz.

    So, it's a combination of many things: TS itself is big, libraries typically publish packages containing both the original source code plus multiple build artifacts to run in different environments, and packages also include various metadata and other files as well.

  • 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: What do you want to know GRAPHQL + NESTJS ? | reddit.com/r/Nestjs_framework | 2022-01-13

    Question: for your e2e tests will you be using something like supertestto send the gql request? And if so, could I suggest you look at pactum which (in my opinion) has a stronger API and better gql support. I've got an example here if you need it

  • 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: Tricking PostgreSQL into using an insane – but 200x faster – query plan | reddit.com/r/programming | 2022-01-18

    The Test Containers project is pretty great for this, and I've personally had success with the stock postgres image and the testcontainers-node library.

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 2022-01-22.

TypeScript Testing related posts

Index

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

Project Stars
1 puppeteer 75,711
2 storybook 68,212
3 jest 37,685
4 cosmos-js 7,375
5 WebdriverIO 7,283
6 ts-jest 5,442
7 Cucumber.js 4,406
8 intern 4,325
9 react-hooks-testing-library 4,213
10 Cucumber 3,302
11 cypress-realworld-app 2,991
12 qawolf 2,938
13 fast-check 2,631
14 garden 2,308
15 Python 2,016
16 generatedata 1,888
17 mongodb-memory-server 1,735
18 spectator 1,690
19 user-event 1,497
20 testing-nestjs 1,334
21 jest-codemods 787
22 ts-mockito 758
23 testcontainers-node 614
Find remote jobs at our new job board 99remotejobs.com. There are 29 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
OPS - Build and Run Open Source Unikernels
Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.
github.com/nanovms