server
jest-extended
server | jest-extended | |
---|---|---|
2 | 3 | |
3,560 | 2,293 | |
- | 0.2% | |
4.3 | 6.7 | |
about 2 months 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.
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...
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
What are some alternatives?
cargo-readme - Generate README.md from docstrings
Detox - Gray box end-to-end testing and automation framework for mobile apps
bash - Unofficial mirror of bash repository. Updated daily.
lighthouse-ci - Automate running Lighthouse for every commit, viewing the changes, and preventing regressions
lazy-static.rs - A small macro for defining lazy evaluated static variables in Rust.
jest - Delightful JavaScript Testing.
cram - Functional tests for command line applications
Cypress - Fast, easy and reliable testing for anything that runs in a browser.
express-promise-router - A lightweight wrapper for Express 4's Router that allows middleware to return promises
phero - Full-stack type-safety with pure TypeScript
architect - The simplest, most powerful way to build a functional web app (fwa)
Standard - 🌟 JavaScript Style Guide, with linter & automatic code fixer