@kensio/part-factory-test-data 1.11.0 → 1.13.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://anthropic.com/claude-code/plugin.schema.json",
|
|
3
3
|
"name": "part-factory-test-data",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.13.0",
|
|
5
5
|
"description": "How to build typed test data with @kensio/part-factory factories.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Kensio Software",
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @kensio/part-factory-test-data
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An agent skill for building test data with [Part Factory](https://partfactory.dev/)
|
|
4
4
|
(`@kensio/part-factory`), a small typed object factory library.
|
|
5
5
|
|
|
6
6
|
The package README is the authority on the API. This skill covers which factory to reach for, when a
|
|
@@ -8,19 +8,34 @@ mapped factory earns its place, and where factories should live.
|
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Into any agent that reads `SKILL.md`:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx @kensio/skills add part-factory-test-data
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
That copies the skill directory into `.agents/skills/`, where Codex, Cursor, Copilot, Gemini CLI and
|
|
18
|
+
the other implementations of the specification look for one. Pass `--agent claude` for
|
|
19
|
+
`.claude/skills/`, `--agent copilot` for `.github/skills/`, and `--user` to install it for every
|
|
20
|
+
project at once.
|
|
21
|
+
|
|
22
|
+
Claude Code also takes it as a plugin:
|
|
12
23
|
|
|
13
24
|
```bash
|
|
14
25
|
claude plugin marketplace add KensioSoftware/kensio.ai
|
|
15
26
|
claude plugin install part-factory-test-data@kensio
|
|
16
27
|
```
|
|
17
28
|
|
|
18
|
-
|
|
29
|
+
Or pin it in a repository as a dependency:
|
|
19
30
|
|
|
20
31
|
```bash
|
|
21
32
|
npm install @kensio/part-factory-test-data
|
|
22
33
|
```
|
|
23
34
|
|
|
35
|
+
Every skill is also published as a zip on each
|
|
36
|
+
[release](https://github.com/KensioSoftware/kensio.ai/releases), for a machine with no npm reach.
|
|
37
|
+
Unzip it into `.agents/skills/` and it is installed.
|
|
38
|
+
|
|
24
39
|
## What it covers
|
|
25
40
|
|
|
26
41
|
**Which factory to reach for.** `StaticFactory` for fixed defaults. `DynamicFactory` when the
|
package/package.json
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kensio/part-factory-test-data",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "How to build typed test data with @kensio/part-factory factories.",
|
|
5
5
|
"keywords": [
|
|
6
|
+
"agent-skills",
|
|
6
7
|
"claude",
|
|
7
8
|
"claude-code",
|
|
8
9
|
"claude-code-plugin",
|
|
10
|
+
"codex",
|
|
11
|
+
"copilot",
|
|
12
|
+
"cursor",
|
|
9
13
|
"factory",
|
|
10
14
|
"faker",
|
|
11
15
|
"kensio",
|
|
12
16
|
"part-factory",
|
|
13
17
|
"skill",
|
|
18
|
+
"skill-md",
|
|
14
19
|
"test-data",
|
|
15
20
|
"testing"
|
|
16
21
|
],
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: part-factory-test-data
|
|
3
3
|
description: Build test data with @kensio/part-factory, keeping in the factory everything a test does not care about, passing dependencies at call time so factories stay independent, and choosing between StaticFactory, DynamicFactory, VariantFactory, MappedFactory and AsyncMappedFactory. Use when writing test fixtures or builders, when a test file is full of object literals, when a shared event, message or payload shape is being hand-written, when a required field is about to be made optional to ease test setup, and when tempted to wrap a factory in a helper function that applies overrides.
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.13.0"
|
|
4
7
|
---
|
|
5
8
|
|
|
6
9
|
# Building test data with Part Factory
|