fix(object): Update toHaveProperty matcher to support nested property paths using dot notation
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-04-30 - 2.3.2 - fix(object)
|
||||
Update toHaveProperty matcher to support nested property paths using dot notation
|
||||
|
||||
- Changed toHaveProperty implementation to split property strings on '.' and traverse nested objects
|
||||
- Fixed value comparison for nested properties by comparing the final drilled value instead of direct property access
|
||||
- Added tests for nested property access in test/propertyPath.ts
|
||||
|
||||
## 2025-04-30 - 2.3.1 - fix(readme)
|
||||
Improve README documentation with detailed 'Why SmartExpect' benefits section
|
||||
|
||||
|
||||
Reference in New Issue
Block a user