assert@0.2.0
📦 remixView on GitHub →
✨ 2 features🔧 3 symbols
Summary
This release introduces the comprehensive `expect` assertion API alongside existing `assert.*` functions. It also enhances error validation in `assert.throws` and `assert.rejects` to support checking specific error object properties.
Migration Steps
- Users can now use the new `expect` API for assertions, which mirrors common testing framework patterns.
✨ New Features
- Introduced the `expect` API, providing assertion methods like `toBe`, `toEqual`, `toBeGreaterThan`, `toContain`, `toMatchObject`, and mock-aware assertions (`toHaveBeenCalled`).
- Added support for validating object shapes in `assert.throws` and `assert.rejects` to check specific error properties.