Here's how Mocha's afterEach() hook works.
What Do You Want to Learn?
Mocha doesn't have a built-in assertion library, but here are a few options.
Here's how `it.skip()` works in Mocha
Here's how you can use date-fns-tz to work with timezones, and alternatives for working with timezones in vanilla JS.
Here's how Mocha's before() hook works, and when you should use it.
Here's two ways you can run just one test out of a Mocha test suite.
Here's how Mocha's beforeEach() hook works.
The "__dirname is not defined" error is usually due to using ESM. Here's how you can fix this error.
Here's how you can add days to a Date without using external libraries, or using date-fns or Luxon.
You can convert BigInts to numbers using the `Number()` constructor, with a few caveats. Here's what you need to know.
Sinon's callsFake() function lets you configure what a stub function returns. Here's what you need to know.
Axios' maxBodyLength property provides a neat way to add a maximum size for HTTP request bodies. Here's what you need to know.
Here's what you need to know about Node's built-in uuid functionality.