- Raise use-swipe-gesture mutation score to 66.13% (target 65%+) - Maintain use-reduced-motion mutation score at 76.32% (target 50%+) - Fix use-reduced-motion.ts ESLint set-state-in-effect warning - Add UJ-10 deep searcher journey (category browse → article read → content discovery) - Add 40 new test files (analytics, detail, sections, ui, lib components) - Update test-strategy-plan.md to v2.0 (sync test count to 1591) - Sync README.md with final release metrics Quality gates: TS 0 errors, ESLint 0 errors, 121 suites / 1591 tests passed
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
// @ts-nocheck
|
|
export class TestDataVersion {
|
|
private versions: Map<string, string> = new Map();
|
|
private currentVersion: string = '1.0.0';
|
|
|
|
setCurrentVersion(version: string): void {
|
|
this.currentVersion = version;
|
|
}
|
|
|
|
getCurrentVersion(): string {
|
|
return this.currentVersion;
|
|
}
|
|
|
|
saveVersion(key: string, data: string): void {
|
|
this.versions.set(`${this.currentVersion}-${key}`, data);
|
|
}
|
|
|
|
getVersion(key: string): string | undefined {
|
|
return this.versions.get(`${this.currentVersion}-${key}`);
|
|
}
|
|
|
|
listVersions(): string[] {
|
|
return Array.from(new Set(Array.from(this.versions.keys()).map(k => k.split('-')[0]).filter((v): v is string => v !== undefined)));
|
|
}
|
|
|
|
export(): string {
|
|
return JSON.stringify({
|
|
currentVersion: this.currentVersion,
|
|
versions: Object.fromEntries(this.versions)
|
|
}, null, 2);
|
|
}
|
|
|
|
import(json: string): void {
|
|
const imported = JSON.parse(json);
|
|
this.currentVersion = imported.currentVersion;
|
|
this.versions = new Map(Object.entries(imported.versions));
|
|
}
|
|
}
|