chaijs.github.io
chaijs.github.io copied to clipboard
The chaijs.com website source code. Contributions welcome.
This pull request introduces a comprehensive guide on using Chai with ECMAScript Modules (ESM) and plugins, specifically focusing on the chai-http plugin and best practices for plugin authors to expose...
As discussed [here](https://github.com/chaijs/chai/discussions/1600) I open an issue for updating Chai's docs since Chai is now using ESMs exclusively and following the docs will break for people using it in a...
This change sorts methods listed in the API sidebar to make finding a method just a little bit easier.
Currently, the website theme is too much bright. It would be better to add a dark theme mode to enhance user experience.
It is mentioned in many places that `expect` function accepts message as a second parameter. But it would be better if parameters of expect were documented explicitly at the beginning...
As I notice that GitHub brings sponsorship, it brings new nuance. We don't have Twitter and an official tutorial in video format. Sadly the Twitter username is taken. Personally, I...
The [helpers page](https://www.chaijs.com/guide/helpers/#adding-methods) reads ``` Assertion.overwriteMethod('above', function (_super) { return function assertAge (n) { if (utils.flag(this, 'model.age')) { [...] // next, make sure we have an age new Assertion(obj).to.have.deep.property('_attrs.age').a('number'); //
The documentation for expect.fail() and assert.fail() doesn't have an example of usage, took me a minute or two to work out that you can't do expect().to.fail() - also the BDD...
Readme.md for chai-exec (plugins/chai_exec.md) hasn't been updated since 10 Jan 2019. Meanwhile, there have been changes in the original readme (https://github.com/chaijs/chaijs.github.io/blob/master/plugins/chai_exec.md) including badge links which are now broken at https://www.chaijs.com/plugins/chai-exec/...
 If you zoom into the page the sticky bar follows you everywhere making it hard to read anything unless you zoom out. Some css fixes can likely remedy this...