chai
chai copied to clipboard
BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.
NPM's README is still showing CommonJS style `require`'s. It looks like the NPM publish of 4.4.0 might have messed up the README for 5.0.0.
It appears that chai-as-promised does not work with chai v5 and is no longer under development. Given the prevalence of programming with Promise, would it make sense to include the...
This is an initial attempt at migrating the codebase to typescript. The tests and build should pass but we can go further and do more with the types. WIP until...
I notice that there are no type definitions for the 5.x branch, here or in Definitely Typed. Is there a chance of getting official types with the 5.x releases?
What is the meaning of word "chai", why is the library named 'Chai' ? Just Curious cc: @thezofx
Added a report to the node project about a regression in node `18.17.0` in regards to using `chai.should()` together with `node:test`: https://github.com/nodejs/node/issues/48918 This is something I started to do very...
Hello, I've an issue with the method `closeTo`. `expect(1682.6).to.be.closeTo(1682.7, 0.1)` returns an error ❌ while I was expecting the test to pass. It seems to me that when you have...
Currently, when using chai with `node:test` runners of the latest node v19 releases, the exceptions of expect and such are pretty bad, with no good idea of what actually failed....
Hello! It would be useful to have a search bar on https://www.chaijs.com
A prototype pollution vulnerability is found in the Chai Npm package in the module - chai.js Here, one level of Object pollution is happening and not global pollution, but however,...