jest-extended
server
Our great sponsors
jest-extended | server | |
---|---|---|
3 | 2 | |
2,291 | 3,560 | |
0.2% | - | |
6.7 | 4.3 | |
about 1 month ago | about 1 month ago | |
JavaScript | JavaScript | |
MIT 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.
jest-extended
-
How To Use expect.objectContaining With Null and Undefined
I recently came across a workaround for this issue by using the expect.toBeOneOf() matcher from the jest-extended library. This matcher allows you to check whether a value matches one of the expected values, including null and undefined.
-
Node.js 20 is now available
Yes, a standardized expect would be nice, but care has to be taken to not bloat it.
Currently I use vitest and https://github.com/jest-community/jest-extended which gets you a reasonable amount of usable matchers.
-
The frontend tooling guide to improve Developer Experience
Jest-Extended: Additional Jest matchers
server
-
Node.js 20 is now available
I created Server.js https://serverjs.io/ and still use it. It is a wrapper around express:
- With a bunch of middleware included and pre-configured, like body-parser, cookies, Helmet, etc. All express middleware works with Server.js
- async/await routers as expected: get('/users', async (ctx) => {...}); (ctx inspired by Koa)
- Websockets, where messages behave just as another route: socket('message', async ctx => { ... });
-
I'd like to review your README
I did that! I hope you are not the person who suffered that from me (did you use Picnic CSS a few years back?). So for a newer project I put some setup code that will look for all code snippets with a specific comment and run that with the code after the comment. For generating the website documentation that test bit can be stripped (though I kept it for now).
Example: https://github.com/franciscop/server/blob/master/docs/docume...
What are some alternatives?
Detox - Gray box end-to-end testing and automation framework for mobile apps
cargo-readme - Generate README.md from docstrings
lighthouse-ci - Automate running Lighthouse for every commit, viewing the changes, and preventing regressions
bash - Unofficial mirror of bash repository. Updated daily.
jest - Delightful JavaScript Testing.
lazy-static.rs - A small macro for defining lazy evaluated static variables in Rust.
Cypress - Fast, easy and reliable testing for anything that runs in a browser.
cram - Functional tests for command line applications
phero - Full-stack type-safety with pure TypeScript
express-promise-router - A lightweight wrapper for Express 4's Router that allows middleware to return promises
Standard - 🌟 JavaScript Style Guide, with linter & automatic code fixer
architect - The simplest, most powerful way to build a functional web app (fwa)