A full version history of the expect package with size, number of distributed files and dependency evolution.
The expect npm package has undergone significant evolution since its initial release in 2011. Early versions (0.0.0 - 0.1.1), authored primarily by Enrico Marino and then Michael Jackson, focused on establishing the core functionality of an assertion library. These versions were lightweight, with minimal dependencies, using mocha as a primary development dependency.
The 1.x.x series (2014-2016) saw refinement of existing features and, most importantly, the inclusion of several dev dependencies such as Karma and jshint, growing from version 1.2.0. This era solidified expect as a reliable assertion tool, also indicating a shift towards browser-based testing through karma. Version 1.7.0 introduces assert as a dependency. Version 1.10.0 has a new organizational structure and includes deep-equal and other. New testing related files are included.
A major shift occurred starting with version 21.0.0 (2017), where expect became integrated within the Jest ecosystem. From version 21 onward, expect belongs to the Jest github namespace as is a key component of the Jest testing framework. This transition brought a more structured dependency management, relying on Jest-related packages. Subsequent releases introduced new matchers, improved error messaging, and aligned with Jest's overall feature set.
Versions 22-27 incremented with new minor and patch versions, and included types and other dependencies related to the Jest testing framework. Later versions (28.0.0 - 30.0.5) focused on modularity and optimized performance.
The latest versions (30.x) of the package exports the expect function to the Jest testing framework.