Files
nextcraft/apps/web/tests/helpers.ts
T
CIAgent 4a6856711f fix(P06): final review — version literal to 0.6.5 + trailing newlines
Review verdict SHIP: purity gate PASS (22 commits: chore 8, verify 5,
docs 5, test 2, fix 1, decision 1 — zero feat:). P2-1 fixed: pyproject
+ package.json version 0.6.3 → 0.6.5 (the about-to-ship line),
reinstalled dist-info, version pins 3/3 green, ruff + mypy green.
P2-3 fixed: trailing newlines (eslint.config.mjs, helpers.ts).
P2-2 (session-sweep concurrency on shared hosts) recorded as post-hoc
note — not actionable this milestone.

---ci---
phase: 6
milestone: v0.7
status: review
---/ci---
2026-09-27 10:18:02 +00:00

30 lines
858 B
TypeScript

/**
* Shared web-test helpers (P2 Task 2-2-02, MH-2b): the wirePosting fixture
* factory, byte-identical to the two per-file copies it replaces.
* Kept as a plain module (not conftest-style) so each test file imports
* only what it stubs.
*/
export function wirePosting(overrides: Record<string, unknown> = {}): Record<string, unknown> {
return {
id: "job-001",
source: "seed",
external_id: "job-001",
employer_id: "emp-1",
title: "AI Platform Engineer",
description: "Build the platform.",
required_competencies: ["stack-orchestration-c001"],
skills: ["Python", "LLM"],
seniority: "senior",
category: null,
location: "San Francisco",
remote: true,
salary_min: 160000,
salary_max: 240000,
status: "published",
tags: null,
posted_at: "2026-09-01T00:00:00Z",
...overrides,
};
}