Welcome to Chai

We are glad that you have decided to give Chai.js a try! If this is your first visit, get aquainted with the basics, such as installation and our included assertion styles.

The Basics

Making Plugins

After you have a solid knowledge of what is included in Chai, the next step is learning how to extend Chai through plugins. Chai is infinitely more powerful than what is included, limited only by what you want to achieve. The Plugin API is also intended as a way to simplify testing by providing users a way to encapsulate common assertions for repeat use.