- 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
758 B
TypeScript
39 lines
758 B
TypeScript
// @ts-nocheck
|
|
export class TestDataManager {
|
|
private data: Map<string, any> = new Map();
|
|
private version: string = '1.0.0';
|
|
|
|
setData(key: string, value: any): void {
|
|
this.data.set(key, value);
|
|
}
|
|
|
|
getData(key: string): any {
|
|
return this.data.get(key);
|
|
}
|
|
|
|
getVersion(): string {
|
|
return this.version;
|
|
}
|
|
|
|
setVersion(version: string): void {
|
|
this.version = version;
|
|
}
|
|
|
|
export(): string {
|
|
return JSON.stringify({
|
|
version: this.version,
|
|
data: Object.fromEntries(this.data)
|
|
}, null, 2);
|
|
}
|
|
|
|
import(json: string): void {
|
|
const imported = JSON.parse(json);
|
|
this.version = imported.version;
|
|
this.data = new Map(Object.entries(imported.data));
|
|
}
|
|
|
|
clear(): void {
|
|
this.data.clear();
|
|
}
|
|
}
|