Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
react-spectrum
A collection of libraries and tools that help you build adaptive, accessible, and robust user experiences.
-
jest-is-a-rude-needy-clown-and-eats-lot-of-memory
Benchmark of memory requirements for different JS test frameworks after running into some issues with Jest memory requirements causing OOM with about ~450 tests (50 suites).
Recent commits are not an indicator for a healthy package.
https://github.com/facebook/jest/pull/11529#issuecomment-102...
For testing, I've been exploring vitest because jest seems to be unmaintained and has growing pain with typescript and esm support.
https://vitest.dev/
It's a drop in replacement for jest. The only change you will need to make in most cases is adding an explicit import for expect, describe, and it. It works without any config with esm and typescript.
Server-side JS is an exceedingly useful tool for certain use cases. Specifically, sharing server and client logic. I know everyone here likes to hate on JS frameworks, but the productivity of being able to build one thing in one language instead of the same thing twice in two languages is hard to overstate.
Sure, that has some trade offs like page bloat. But almost all of the JS framework universe is focused now on reducing or eliminating those trade offs: partial hydration, build time code elimination, server components, etc. There’s still a long way to go before the DX and UX reach parity, but it’s inevitable, and closer than one might think (see Qwik[1]).
1: https://github.com/BuilderIO/qwik
It’s not perfect though. The only reason I’m not using preact is that my front-end library of choice, react-aria, does not work 100% with preact, though it sounds like it might now be close (unsure).
https://react-spectrum.adobe.com/react-aria/index.html
https://github.com/adobe/react-spectrum/issues/781
I've been doing some benchmarks recently and actually it is not that fast, compared to Jest. It seems to have solved the Jest unforgivable memory leaks, but overall has much greater memory consumption.
https://github.com/grissius/jest-is-a-rude-needy-clown-and-e...
I've been doing some benchmarks recently and actually it is not that fast, compared to Jest. It seems to have solved the Jest unforgivable memory leaks, but overall has much greater memory consumption.
https://github.com/grissius/jest-is-a-rude-needy-clown-and-e...
Related posts
- Integrating Jest Testing into an Existing Vue 3 Project with ViteJs
- Jest v29.5.0 shipped with --randomize CLI flag to run your tests in a random order
- A gentle introduction to Vitest
- [React + Jest] Introducing to Components Tests
- How To Start Testing React Apps (And Why I Recommend Cypress To Beginners)