uvu
TypeScript-Website
Our great sponsors
uvu | TypeScript-Website | |
---|---|---|
21 | 54 | |
2,936 | 2,124 | |
- | 1.3% | |
3.0 | 8.9 | |
18 days ago | 4 days ago | |
JavaScript | TypeScript | |
MIT License | Creative Commons Attribution 4.0 |
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!
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)
-
From Jest to Vitest - Migration and Benchmark
uvu is what I’d recommend.
-
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.
-
Why Jest is not for me
For Node, I lean towards UVU by @lukeed due to its simplicity. Its lightweight, fast, supports ESM out of the box. It feels like an easier to setup modern Mocha (without the wide array of plugins).
TypeScript-Website
- Is TypeSearch down for anyone else?
-
How to write React components in TypeScript (2022)
For new components, it does make sense to follow the style defined in the React documentation by writing components using a function definition. However, arrow functions using React.FC also remain a popular choice and are used by Vercel and the official TypeScript website
-
Does the TypeScript handbook really take 30 minutes or am I just stupid?
I opened a pull request to remove that, because you're right, there's no way somebody can read the whole handbook in 30 minutes!
- Workspaces 2021: yarn v1 vs yarn v2 vs npm?
-
Where do you guys keep your types
Yep, this is my answer too - I use this pattern pretty often. For example, here's the main object that represents the TypeScript Playground at runtime: https://github.com/microsoft/TypeScript-website/blob/86901a0520855050b16b0c23bd6923212fdd0c9c/packages/playground/src/index.ts#L622-L623
-
A Detailed Step-By-Step Implementation of A Full-Featured RESTful API on AWS By A Reformed J2EE Engineer
In this series of articles, I intend to provide a detailed, accurate, and step-by-step explanation of how to implement a RESTful web interface using a stack of Typescript, Node.js, Dynamoose, DynamoDB, Jest, Serverless Framework, AWS, and Amazon Cognito.
-
TypeScript Linting and Code Formatter
Install TypeScript package: npm i -D typescript
- How do I know what data types are in the parameters of JavaScript functions/methods?
-
Creating a modern JS library: Writing good code
Beyond testing your code, it's an excellent idea to write your library in TypeScript. Type errors are among the most common type of mistake in JavaScript, so using TypeScript will almost always reduce development time and may occasionally prevent you from publishing broken code if you forget to add a test. Moreover, the excellent TypeScript compiler will allow you to avoid using a bundler when publishing your package (we'll get into this more later) and will make supporting TypeScript and JavaScript users simultaneously much easier.
-
Why Do We Need Transpilation into JavaScript?
TypeScript is a JavaScript superset with optional type annotations checked during transpilation.
What are some alternatives?
jest - Delightful JavaScript Testing.
primevue - Next Generation Vue UI Component Library
AVA
chakra-ui - ⚡️ Simple, Modular & Accessible UI Components for your React Applications
svelte-starter-kit - Svelte with brilliant bells and useful whistles
wttr.in - :partly_sunny: The right way to check the weather
ava - Node.js test runner that lets you develop with confidence 🚀
typedoc - Documentation generator for TypeScript projects.
Sinon.JS - Test spies, stubs and mocks for JavaScript.
wasm-bindgen - Facilitating high-level interactions between Wasm modules and JavaScript
supertest - 🕷 Super-agent driven library for testing node.js HTTP servers using a fluent API. Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.
domain-driven-hexagon - Learn Domain-Driven Design, software architecture, design patterns, best practices. Code examples included