Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework. Chai has several interfaces that allow the developer to choose the most comfortable. The chain-capable BDD styles provide an expressive language & readable style, while the TDD assert style provides a more classical feel. Plugins extend Chai's assertions to new contexts such as vendor integration & object construction. Developers can build their own plugins to share with community or use the plugin pattern to DRY up existing tests. You can also use it within the browser; install via npm and use the chai.js file found within the download. Browse our growing directory of custom plugins & vendor integrations to find the best tool for your needs. Chai has an extensive utility belt for plugin developers. Learn how to build your plugins & share.

Features

  • Chai offers a robust Plugin architecture for extending Chai's assertions and interfaces
  • 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
  • Integration test request composition
  • Test http apps or external services
  • Assertions for common http tasks

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow chai

chai Web Site

Other Useful Business Software
Managed MySQL, PostgreSQL, and SQL Databases on Google Cloud Icon
Managed MySQL, PostgreSQL, and SQL Databases on Google Cloud

Get back to your application and leave the database to us. Cloud SQL automatically handles backups, replication, and scaling.

Cloud SQL is a fully managed relational database for MySQL, PostgreSQL, and SQL Server. We handle patching, backups, replication, encryption, and failover—so you can focus on your app. Migrate from on-prem or other clouds with free Database Migration Service. IDC found customers achieved 246% ROI. New customers get $300 in credits plus a 30-day free trial.
Try Cloud SQL Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of chai!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Browsers, JavaScript Software Testing Tool, JavaScript Frameworks

Registered

2021-08-03