6 ms·
What alternatives do you like?
by o_____________o 5y ago
What alternatives do you like?
- horsawlarway 5y agoJest. The matchers cover basically all the same use cases. Not to mention that jest's "expect.arrayContaining" and "expect.objectContaining" literally blow most other assertion libraries out of the water.
- sombremesa 5y agoI don't know what kind of shop you're running where JS libraries are 'literally' getting blown out of water but I like it.
- grumple 5y agoIt would not surprise me if there's javascript running on nuclear subs. It's already made it to space: https://www.infoq.com/news/2020/06/javascript-spacex-dragon/ https://www.infoq.com/news/2020/06/javascript-spacex-dragon/
- semi-extrinsic 5y agoIn the trivial sense, sure, someone probably has a web browser on a nuclear sub. But if you're talking software written for the operation of the sub itself, I expect it's either Ada, C89 or C++. Ada was, after all, developed specifically by the DoD for exactly such purposes.
- hermanradtke 5y agoJest as a test runner is very slow. I normally run mocha while importing the expects from jest.
- andrew_ 5y agoI 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 https://github.com/avajs/ava [2] https://github.com/substack/tape https://github.com/substack/tape [3] https://github.com/lukeed/uvu 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.
- 11235813213455 5y agoconst { deepStrictEqual: same } = require('assert');
- krzkaczor 5y agoI like simplicity of mochajs but chai felt really outdated. Jest on the other hand is so complicated and magical that I have no confidence in tests that I write using it. That's why I've created earljs: https://earljs.dev/ https://earljs.dev/ It's a modern, fully typesafe chai replacement that works great with mocha. Very inspired by Jest (matchers, snapshots) but without magic that makes Jest hard to reason about.