refactor(test): colocate pure-domain tests and reduce test debt (#471)
* refactor(test): colocate pure-domain tests and reduce test debt Move focused immutable domain/contracts/adapter tests from tests/composition/** beside their production owners under src/** as colocated *.test.ts/*.fixture.ts, and relocate persistence-shaped composition tests under tests/boundary/filesystem/**. Update import paths, the Vitest project topology (shared worker context for pure domain/contracts and recording-port service projects), the test migration ledger, testing docs, and AGENTS.md to match. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * docs: remove test migration ledger The cutover is complete and the ledger is no longer referenced anywhere in source, scripts, or the docs gate. Drop the standalone artifact. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * docs: clean up stale migration artifacts Remove empty directories left by the test migration and replace the "final cutover" language in docs/testing.md with standing PR guidance that no longer references the completed migration. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix: repair CI failures from schema, knip, and stale generated artifacts Three root causes fixed: 1. catalog-schemas.mjs: valuesAt only traversed anyOf from Zod's toJSONSchema, not oneOf. The webScreenshotDiffSchema change to a discriminated union produces oneOf, so the product catalog generator could not derive the web_screenshot_diff schema version. Add oneOf traversal. 2. conformancePackage.ts: the test rewrite removed the only imports of ScenarioManifest, ReplayPlan, ShimPlan, and ExpectedEvidence, making them unused exports that knip flags. Remove the dead type aliases. 3. Regenerate stale artifacts (product catalog, MCP tool catalog, skill metadata, conformance manifest) that drifted from the source changes. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent
344b9b6dff
commit
e91c8c39c2
@@ -17,20 +17,24 @@ export interface JavaScriptSourceRange {
|
||||
readonly end: JavaScriptSourcePoint;
|
||||
}
|
||||
|
||||
/** A statically visible module, worker, or service-worker reference. */
|
||||
export interface JavaScriptStaticReference {
|
||||
interface JavaScriptStaticReferenceState {
|
||||
readonly kind:
|
||||
| "static-import"
|
||||
| "dynamic-import"
|
||||
| "require"
|
||||
| "worker"
|
||||
| "service-worker";
|
||||
readonly specifier: string | null;
|
||||
readonly expression: string | null;
|
||||
readonly module_key: string | null;
|
||||
readonly location: JavaScriptSourceRange;
|
||||
}
|
||||
|
||||
/** A statically visible module, worker, or service-worker reference. */
|
||||
export type JavaScriptStaticReference = JavaScriptStaticReferenceState &
|
||||
(
|
||||
| { readonly specifier: string; readonly expression: null }
|
||||
| { readonly specifier: null; readonly expression: string }
|
||||
);
|
||||
|
||||
/** A route or network endpoint literal observed in syntax. */
|
||||
export interface JavaScriptStaticEndpoint {
|
||||
readonly kind: "route" | "network";
|
||||
@@ -54,19 +58,30 @@ export interface JavaScriptStaticStorage {
|
||||
readonly location: JavaScriptSourceRange;
|
||||
}
|
||||
|
||||
/** One exact module factory recovered from a Webpack/Rspack registration. */
|
||||
export interface JavaScriptBundlerModule {
|
||||
interface JavaScriptBundlerModuleState {
|
||||
readonly module_key: string;
|
||||
readonly factory_require_name: string | null;
|
||||
readonly source_sha256: string;
|
||||
readonly structural_fingerprint_sha256: string | null;
|
||||
readonly structural_fingerprint_algorithm: "babel-ast-v1" | null;
|
||||
readonly structural_fingerprint_status: "complete" | "truncated";
|
||||
readonly exports: readonly string[];
|
||||
readonly exports_truncated: boolean;
|
||||
readonly location: JavaScriptSourceRange;
|
||||
}
|
||||
|
||||
/** One exact module factory recovered from a Webpack/Rspack registration. */
|
||||
export type JavaScriptBundlerModule = JavaScriptBundlerModuleState &
|
||||
(
|
||||
| {
|
||||
readonly structural_fingerprint_sha256: string;
|
||||
readonly structural_fingerprint_algorithm: "babel-ast-v1";
|
||||
readonly structural_fingerprint_status: "complete";
|
||||
}
|
||||
| {
|
||||
readonly structural_fingerprint_sha256: null;
|
||||
readonly structural_fingerprint_algorithm: null;
|
||||
readonly structural_fingerprint_status: "truncated";
|
||||
}
|
||||
);
|
||||
|
||||
/** One statically recognized bundler chunk or module registration. */
|
||||
export interface JavaScriptBundlerRegistration {
|
||||
readonly bundler: "webpack" | "rspack" | "esbuild";
|
||||
|
||||
Reference in New Issue
Block a user