Generate tests for CRUD operations
crud-testing
command generates test files for CRUD (Create, Read, Update, Delete) operations in your zopio
project. This helps ensure your API endpoints and data handling functions work correctly.
Option | Description |
---|---|
-m, --model <name> | Model name |
-f, --fields <fields> | Fields in format “name:type:example,age:number:30” |
-o, --output <directory> | Output directory for tests |
-t, --test-framework <framework> | Test framework (jest, mocha) (default: “jest”) |
-h, --help | Display help for command |
crud-testing
command, the following test files will be generated:
crud
- Generate basic CRUD operationscrud-unified
- Generate a complete CRUD setup