@kensio/part-factory-test-data 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +2 -2
- package/README.md +3 -3
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://anthropic.com/claude-code/plugin.schema.json",
|
|
3
3
|
"name": "part-factory-test-data",
|
|
4
|
-
"version": "1.
|
|
5
|
-
"description": "How to build test data with @kensio/part-factory
|
|
4
|
+
"version": "1.8.0",
|
|
5
|
+
"description": "How to build typed test data with @kensio/part-factory factories.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Kensio Software",
|
|
8
8
|
"email": "hugh@kensiosoftware.co.uk"
|
package/README.md
CHANGED
|
@@ -29,9 +29,9 @@ tests their isolation. `VariantFactory` for a named variation of a base factory,
|
|
|
29
29
|
is worth a name in the test. `MappedFactory` when the output shape differs from the parts you want
|
|
30
30
|
to override.
|
|
31
31
|
|
|
32
|
-
**When a mapped factory earns its place.** The map should be a real transformation
|
|
33
|
-
encoded form body, or front matter parts to a file as written on disk. If the map is copying
|
|
34
|
-
across into an object of the same shape, you wanted a `DynamicFactory`.
|
|
32
|
+
**When a mapped factory earns its place.** The map should be a real transformation, such as parts to
|
|
33
|
+
an encoded form body, or front matter parts to a file as written on disk. If the map is copying
|
|
34
|
+
fields across into an object of the same shape, you wanted a `DynamicFactory`.
|
|
35
35
|
|
|
36
36
|
**Do not wrap a factory in a function that applies overrides.** `make(overrides)` already is that
|
|
37
37
|
function, and it does the job better, since its overrides are partial all the way down the nested
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kensio/part-factory-test-data",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "How to build test data with @kensio/part-factory
|
|
3
|
+
"version": "1.8.0",
|
|
4
|
+
"description": "How to build typed test data with @kensio/part-factory factories.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|
|
7
7
|
"claude-code",
|