Add custom message to Jest expects
Overall
score
99%
Advanced configuration combinations
Package setup
100%
100%
Custom message usage
100%
100%
Default configuration
100%
100%
showPrefix control
100%
100%
Multiple option combination
100%
100%
Configuration variety
100%
100%
Global expect enhancement
Library import
100%
100%
Jest configuration
100%
100%
Custom message usage
100%
100%
Matcher compatibility
100%
100%
Custom error messages for assertions
Basic custom messages
0%
100%
Async matcher messages
0%
100%
Message quality
0%
100%
Configuration options
0%
0%
Setup configuration
100%
100%
Minimal performance overhead
Library setup
100%
100%
Baseline assertions
100%
100%
Enhanced assertions
100%
100%
Matcher compatibility
100%
100%
Timing measurements
100%
100%
Return structure
100%
100%
Basic configuration options (showPrefix, showMatcherMessage, showStack)
Package setup
100%
100%
Custom messages provided
100%
100%
showPrefix option usage
0%
100%
showMatcherMessage option usage
0%
100%
showStack option usage
0%
100%
Multiple configurations
0%
100%
Matcher interception without modification using proxy pattern
Uses expect with message parameter
100%
100%
Custom messages are descriptive
100%
100%
Works with standard matchers
100%
100%
Handles negation with .not
100%
100%
Tests cover all scenarios
100%
100%
Proper test structure
100%
100%
Recursive matcher wrapping for nested matchers (.not, .resolves, .rejects)
Setup jest-expect-message
80%
100%
Custom messages usage
40%
100%
.resolves matcher chain
0%
100%
.rejects matcher chain
50%
100%
.not.resolves chain
0%
100%
Message clarity
66%
100%
Asymmetric matcher support
Custom messages usage
100%
100%
expect.any() usage
0%
100%
expect.objectContaining() usage
0%
100%
expect.arrayContaining() usage
0%
100%
Combined asymmetric matchers
0%
100%
Message quality
60%
100%
expect.extend compatibility for custom matchers
expect.extend usage
100%
100%
Matcher return structure
100%
100%
toBeValidPrice implementation
100%
100%
toBeInStock implementation
100%
100%
toHaveCategory implementation
100%
100%
toHaveAllTags implementation
100%
100%
Negation support
100%
100%
Jest-expect-message compatibility
100%
100%
Universal matcher compatibility
Custom messages usage
100%
100%
Standard matchers
100%
100%
Negated matchers
0%
100%
Async matchers
0%
100%
Multiple matcher types
100%
100%
Package setup
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-jest-expect-message