Skip to content

Commit e3c3aa1

Browse files
committed
Update testing instructions in SKILL.md to include unit tests and usage of @fedify/fixture
1 parent 1a2b70b commit e3c3aa1

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

  • .agents/skills/create-integration-package

.agents/skills/create-integration-package/SKILL.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,15 @@ perform the required updates. Record the package addition in *CHANGES.md*.
133133

134134
### Tests
135135

136-
Unit tests aren't mandatory since you can test using `mise test:init`, which
137-
will be explained later. Therefore, testing by packages is not necessary.
136+
You can test the integration using `mise test:init`, which will be explained
137+
later, but write unit tests as well if possible. Import the `test` function
138+
from `@fedify/fixture` to write runtime-agnostic tests that work across
139+
Deno, Node.js, and Bun. Name test files with the `*.test.ts` convention
140+
(e.g., `src/mod.test.ts`).
141+
142+
> **Warning**: `@fedify/fixture` is a **private** workspace package and
143+
> must never be imported from published (non-test) source files. Only
144+
> import it in `*.test.ts` files.
138145
139146
### Implementation checklist
140147

0 commit comments

Comments
 (0)