factory.ts
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "factory.ts", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": |
@@ -46,2 +46,14 @@ # factory.ts | ||
You can also call `personFactory.build` with no arguments to use factory defaults: | ||
```typescript | ||
const anybody = personFactory.build(); | ||
``` | ||
And you can create an array of objects from factory using `buildList` (with or without the `Partial` override): | ||
```typescript | ||
const theBradyBunch = personFactory.buildList(8, { lastName: 'Brady' }); | ||
``` | ||
### Extending factories | ||
@@ -48,0 +60,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16831
101