sveltekit-uvu-testing
uvu-expect
sveltekit-uvu-testing | uvu-expect | |
---|---|---|
1 | 1 | |
0 | 1 | |
- | - | |
2.6 | 1.8 | |
about 1 year ago | about 2 years ago | |
TypeScript | TypeScript | |
BSD 3-clause "New" or "Revised" License | MIT License |
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.
sveltekit-uvu-testing
-
SvelteKit uvu Testing: Fast Component Unit Tests
You can see an example project with all of this setup and config on the Rodney Lab Git Hub repo. You can drop a comment below or reach for a chat on Element as well as Twitter @mention if you have suggestions for improvements or questions.
uvu-expect
-
Creating a Chai like assertion library using proxies
This setup works really good! But there’s some minor details: The assertion errors thrown by Chai are slightly different than those expected by uvu., so sometimes I’d get messages or extra details that are not so relevant to the test itself. Another issue is that I’d receive diffs comparing undefined to undefined when an assertion failed. As a proper developer with too much free time, I went ahead and decided to experiment with writing my own assertion library built on top of uvu’s assertions that I called uvu-expect. Here’s more or less how I did it.
What are some alternatives?
trpc-sveltekit - End-to-end typesafe APIs with tRPC.io for your SvelteKit applications.
mocha - ☕️ simple, flexible, fun javascript test framework for node.js & the browser
uvu - uvu is an extremely fast and lightweight test runner for Node.js and the browser
tinyspy - 🕵🏻♂️ minimal fork of nanospy, with more features [Moved to: https://github.com/tinylibs/tinyspy]
fast-check - Property based testing framework for JavaScript (like QuickCheck) written in TypeScript
aws-testing-library - Chai (https://chaijs.com) and Jest (https://jestjs.io/) assertions for testing services built with aws
test-runner-compare - JavaScript Test Runner Comparison(Jest, AVA, Mocha, tape, Jasmine, uvu, vitest)
uvu-expect-dom - Dom assertions for uvu-expect built on top of jest-dom
svelte-spectre - UI-kit based on *spectre.css* and powered by *svelte*