Top 23 TypeScript Testing Projects
-
puppeteer
Headless Chrome Node.js API
I believe so eg https://github.com/puppeteer/puppeteer/issues/1319#issuecomment-371503788
-
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-06Storybook
-
Scout
Get performance insights in less than 4 minutes. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
-
jest
Delightful JavaScript Testing.
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.
-
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-06Anyone 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.
-
cosmos-js
Sandbox for developing and testing UI components in isolation
-
WebdriverIO
Next-gen browser and mobile automation test framework for Node.js
Selenium (WebdriverIO)
-
intern
A next-generation code testing stack for JavaScript.
-
Cucumber.js
Cucumber for JavaScript
Project mention: Apple has threatened to remove Amphetamine from the App Store | news.ycombinator.com | 2021-01-01No 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
-
qawolf
🐺 Create browser tests 10x faster
View on GitHub
-
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.
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.
-
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 -
Python
This extension is now maintained in the Microsoft fork.
-
cypress-realworld-app
A payment application to demonstrate real-world usage of Cypress testing methods, patterns, and workflows.
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:
-
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 -
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).
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.
-
ts-mockito
Mocking library for TypeScript
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.
-
mockttp
Powerful friendly HTTP mock server & proxy
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.
-
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.
-
nut.js
Native UI testing / controlling with node
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.
-
jest-playwright
Running tests using Jest & Playwright 🚀
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:
-
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-30I 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.
-
Jooks (Jest ❤ + Hooks 🤘🏻)
Testing hooks with Jest
-
best
:trophy: Delightful Benchmarking & Performance Testing
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.
Index
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 |