Jest And Runtime Tests
Jest is the main test runner for this package.What belongs here
- unit and logic tests
- contract tests
- runtime integration tests
- persistence tests
- query and model behavior tests
Typical commands
Recommended test order
- contract or logic suite
- runtime integration suite
- scenario or CLI suite only if the change crosses generator or command boundaries
Main runtime areas that should stay covered
- persistence lifecycle
- query behavior
- soft delete and restore
- relation loading
- generated model behavior
- model hooks and dirty tracking