Top 23 TypeScript Testing Projects
Headless Chrome Node.js APIProject 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
📓 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
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.
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.
Node.js library to automate Chromium, Firefox and WebKit with a single APIProject 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.
Sandbox for developing and testing UI components in isolationProject mention: React Cosmos – Build UIs at Scale | news.ycombinator.com | 2021-03-01
Next-gen browser and mobile automation test framework for Node.jsProject mention: Evaluation of Microsoft Playwright | dev.to | 2021-03-04
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
🐺 Create browser tests 10x fasterProject mention: Test receiving an email in 2 minutes | dev.to | 2021-02-25
View on GitHub
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.
This extension is now maintained in the Microsoft fork.
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:
🦊 🚀 A Powerful Tool to Simplify Your Angular TestsProject mention: I need help about what to test in my angular app | reddit.com/r/Angular2 | 2021-02-12
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.
Mocking library for TypeScriptProject 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.
Powerful friendly HTTP mock server & proxyProject 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.
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.
Native UI testing / controlling with nodeProject 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.
Running tests using Jest & Playwright 🚀Project mention: Evaluation of Microsoft Playwright | dev.to | 2021-03-04
Framework independent visual testing libraryProject 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.
Testing hooks with Jest
:trophy: Delightful Benchmarking & Performance TestingProject mention: 2020 Year in Review | dev.to | 2021-01-06
What are some of the best open-source Testing projects in TypeScript? This list will help you:
|22||Jooks (Jest ❤ + Hooks 🤘🏻)||66|