uvu
fastify
Our great sponsors
uvu | fastify | |
---|---|---|
21 | 124 | |
2,934 | 30,348 | |
- | 1.8% | |
3.7 | 9.4 | |
2 months ago | 5 days ago | |
JavaScript | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
uvu
-
Express API Testing
Last but not least important are ava, uvu and tape; they are a really light and fast test runners.
-
Test Svelte Component Using Vitest & Playwright
Vitest: A Vite-native unit test framework. (alternative: Jest, uvu)
-
SvelteKit uvu Testing: Fast Component Unit Tests
Most important here is not to forget to include test.run() at the end… I’ve done that a few times 😅. Notice how we are able to use aliases in lines 1–3. You can see the full range of assert methods available in the uvu docs.
-
Creating a Chai like assertion library using proxies
For the past few weeks I’ve taken the (arguably pointless) work of migrating Felte from using Jest to uvu. This is a really tedious work by itself, but one of details that would have made this work even more tedious is that Jest prefers assertions to the style of expect(…).toBe* while uvu gives you freedom to choose any assertion library, although there’s an official uvu/assert module that comes with assertions to the style of assert.is(value, expected).
-
Test Coverage in Svelte
Hello everyone, I'm using uvu for testing. And installed c8 for coverage. Yet it doesn't seem to be able to pick up test .svelte files. Does anyone knows how to achieve this or any other way of getting .svelte files coverage? Thanks
-
Don't be a dolt like me: Set Up Debugging in VSCode!
I use UVU
Yes! There’s even an example test written for the svelte counter demo in the repo’s examples!
-
Recommendations for a lightweight, idiomatic testing framework? (looking for a diamond in the rough, not the top 5 most popular)
https://github.com/lukeed/uvu 4 dependencies, fast, browser or node, can just use native assert, no magic
-
Chaijs.com just let their domain expire
I really enjoy Ava [1] or anything assert-tape-like [2]. "uvu" [3] is getting a lot of love lately, but it's very feature limited and much of it's touted advantages are at the detriment to feature set.
[1] https://github.com/avajs/ava
[2] https://github.com/substack/tape
[3] https://github.com/lukeed/uvu
Jest is great for front-end (or full stack integration) testing, but I feel it's specialized for that use-case and doesn't always play nice with backend/middle-tier testing needs.
fastify
-
Should you use jest as a testing library?
For example, Fastify removed the instanceof operatorfrom its codebase because it was causing problems for those developers that rely on jest as a testing framework.
- Is this a valid reason to give up node?
-
Next JS vs Nest JS
Both are frameworks but NextJs is for Forntend (web app in browser that use ReactJs under the hood) and NestJs is for Backend (server app running on a server witch use Express or Fastify). The only thing similar between them is the typed language in which they were written.
-
Stop using express.js
Restify & Fastify Hapi
-
Aplicação de Referência Empresarial em JavaScript - Contoso Real Estate
Fastify
-
Building a modern gRPC-powered microservice using Node.js, Typescript, and Connect
In setting out to build this service, we wanted to use gRPC for its APIs. We’ve been reaching for REST when building APIs so far, primarily out of necessity, i.e., our public APIs needed auto-generated client SDKs and docs for developers working with them. We built those APIs with Fastify and Typebox but felt burned by a code-first approach to generating an OpenAPI spec. I’ll spare you the details and save that experience/learning for another article. Suffice it to say we love gRPC’s schema-first approach. This blog post summarizes our feelings well
- Node.js 20 is now available
-
Node JS Microservice Frameworks for Developing Scalable Web Apps.
Fastify – Fast and Low overhead web framework
-
How to Speed Up your Applications by Caching at the Edge with HarperDB
Custom Functions are powered by Fastify (a light-weight Node.js framework that claims to be faster than Express.js), so they’re extremely flexible.
-
Building a Node API with Fastify, esbuild, and Nx
We’ll be using Fastify as the framework of choice. Fastify is a fast (as the name implies) and low-overhead server in Node. It has grown in popularity, recently crossing the 1 million weekly download mark on npm. I’m a fan of Fastify’s plugin architecture, and the ecosystem is quite impressive, boasting over 250 core and community plugins.
What are some alternatives?
Next.js - The React Framework
Express - Fast, unopinionated, minimalist web framework for node.
Koa - Expressive middleware for node.js using ES2017 async functions
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
Hapi - The Simple, Secure Framework Developers Trust
AdonisJs Framework - AdonisJS is a TypeScript-first web framework for building web apps and API servers. It comes with support for testing, modern tooling, an ecosystem of official packages, and more.
bun - Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
dotenv - Loads environment variables from .env for nodejs projects.
tinyhttp - 🦄 0-legacy, tiny & fast web framework as a replacement of Express
Restify - The future of Node.js REST development
nestjs-boilerplate - NestJS boilerplate. Auth, TypeORM, Mongoose, Postgres, MongoDB, Mailing, I18N, Docker.
AdonisJs Application