@owlmeans/test-integration 0.1.16-rc.0 → 0.1.16

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/README.md CHANGED
@@ -13,10 +13,9 @@ Specs do not call services through these helpers — they consume the per-packag
13
13
  <!-- owlmeans:agent-guidance:start -->
14
14
  ## Agent guidance
15
15
 
16
- This package ships embedded Claude Code skills and GitHub Copilot instructions under
17
- `agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
18
- agent-skills installer to place them into your project's native locations
19
- (`.claude/skills/` and `.github/instructions/`):
16
+ This package ships embedded agent skills under `agent-meta/`. After installing your
17
+ `@owlmeans/*` packages, run the OwlMeans agent-skills installer to place them into
18
+ your project's skill store (`.agents/skills/`):
20
19
 
21
20
  ```sh
22
21
  npx @owlmeans/agent-skills
@@ -1,8 +1,8 @@
1
1
  {
2
- "schemaVersion": 1,
2
+ "schemaVersion": 2,
3
3
  "package": "@owlmeans/test-integration",
4
- "version": "0.1.16-rc.0",
5
- "generatedAt": "2026-08-11T14:02:34.978Z",
4
+ "version": "0.1.16",
5
+ "generatedAt": "2026-08-14T10:14:48.851Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -10,14 +10,7 @@
10
10
  "name": "testing-integration",
11
11
  "category": "package-specific",
12
12
  "file": "skills/testing-integration/SKILL.md",
13
- "canonicalPath": ".claude/skills/testing-integration/SKILL.md"
14
- },
15
- {
16
- "kind": "instruction",
17
- "name": "testing-integration",
18
- "category": "package-specific",
19
- "file": "instructions/testing-integration.instructions.md",
20
- "canonicalPath": ".github/instructions/testing-integration.instructions.md"
13
+ "canonicalPath": ".agents/skills/testing-integration/SKILL.md"
21
14
  }
22
15
  ]
23
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/test-integration",
3
- "version": "0.1.16-rc.0",
3
+ "version": "0.1.16",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@owlmeans/test": "^0.1.16-rc.0"
24
+ "@owlmeans/test": "^0.1.16"
25
25
  },
26
26
  "devDependencies": {
27
- "@owlmeans/dep-config": "^0.1.16-rc.0",
27
+ "@owlmeans/dep-config": "^0.1.16",
28
28
  "@types/bun": "^1.3.14",
29
29
  "nodemon": "^3.1.14",
30
30
  "typescript": "^6.0.3"
@@ -1,23 +0,0 @@
1
- ---
2
- applyTo: "**/*.test.ts, **/*.spec.ts, **/*.ts"
3
- ---
4
- <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
5
-
6
- # Category C — Integration Tests (env-gated)
7
-
8
- - Tests in `<your-package>/tests/*.spec.ts`. Use `bun:test`.
9
- - No mocks. Connect to real PostgreSQL / MongoDB / Redis / S3 / Kubernetes via the env values supplied by `<root>/.env`.
10
- - Open the gate at the top of `tests/context.ts` via `postgresGate()` / `mongoGate()` / `redisGate()` / `s3Gate()` / `kubeGate()`. If `gate.skip`, do **not** register that service in the test context, and have specs self-skip with `gate.reason`.
11
- - **Never print a credential.** Pipe it straight into the env var the gate reads.
12
- - Unit specs (schema compilation, identifiers, error translation) go in the `*-resource` package; specs that build a real `ServerContext` go in the db package that depends on it — the reverse is a devDependency cycle.
13
- - **One namespace per spec file.** Export a `makeSuite(label)` from `tests/context.ts` that owns a `randomNamespace(`${prefix}_${label}`)` schema/database and its own `teardown()`, called from that file's `afterAll`. The process-global `registerCleanup`/`runCleanups()` queue is only safe in a package with a single spec file: Bun runs every spec file of a package in one process, so the first `afterAll` would drop the namespaces of the files still to come.
14
- - Capture connections in a `finally`, so a spec asserting a *failed* boot does not leak the pool it opened. Close them *after* the namespace drop.
15
- - Capability probes go at module scope as a top-level `await` — Bun decides `test` vs `test.skip` synchronously — and default to "not capable" on any error.
16
- - Never reset module-scope declarations (migration registries, table declarations) inside a shared `boot()` helper; a spec that wants a clean slate calls `resetDeclarations(alias)` itself. Keep migration bodies at module scope so their checksums are stable.
17
- - `expect(fn).not.toThrow()` treats a **returned** `Error` as thrown — assert the returned value instead.
18
- - `<root>/.env.example` is the authoritative documentation of every variable. Add a new key there with a comment when you introduce a new gate.
19
- - Per-package `package.json` script: `"test": "bun test ./tests"`; add `"./tests/**/*"` to `tsconfig.json` `exclude` and `@owlmeans/test-integration` + `@types/bun` to devDependencies. Long round-trips: bump timeout in a per-package `bunfig.toml`.
20
- - Cover `.claude/skills/<pkg>/SKILL.md` and `README.md` cases first.
21
- - Max 3-4 tests per method/function.
22
-
23
- See `.claude/skills/testing-integration/SKILL.md` for the full pattern.