From ff2db6df81aa387f995dc0f2a234de11b2f87a64 Mon Sep 17 00:00:00 2001 From: rUv Date: Mon, 4 Aug 2025 15:11:15 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/agentic-flow/src/tests/validation/env.setup.j?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/1754320270.json | 1 + .claude/checkpoints/1754320271.json | 1 + agentic-flow/src/tests/validation/env.setup.js | 17 +++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 .claude/checkpoints/1754320270.json create mode 100644 .claude/checkpoints/1754320271.json create mode 100644 agentic-flow/src/tests/validation/env.setup.js diff --git a/.claude/checkpoints/1754320270.json b/.claude/checkpoints/1754320270.json new file mode 100644 index 0000000000..9888a5c33e --- /dev/null +++ b/.claude/checkpoints/1754320270.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250804-151110", "file": "/workspaces/claude-code-flow/agentic-flow/src/tests/validation/jest.config.js", "timestamp": "2025-08-04T15:11:10Z", "type": "pre-edit", "original_branch": "alpha-85"} diff --git a/.claude/checkpoints/1754320271.json b/.claude/checkpoints/1754320271.json new file mode 100644 index 0000000000..7b6b8f4840 --- /dev/null +++ b/.claude/checkpoints/1754320271.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250804-151111", "file": "/workspaces/claude-code-flow/agentic-flow/src/tests/validation/jest.config.js", "timestamp": "2025-08-04T15:11:11Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 1526 ++-------------------- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1754320256.json | 1 + .claude/checkpoints/1754320258.json | 1 + agentic-flow/src/tests/validation/jest.config.js | 40 + claude-flow-wiki | 0 memory/memory-store.json | 12 + 8 files changed, 155 insertions(+), 1433 deletions(-) "} diff --git a/agentic-flow/src/tests/validation/env.setup.js b/agentic-flow/src/tests/validation/env.setup.js new file mode 100644 index 0000000000..a7601ea514 --- /dev/null +++ b/agentic-flow/src/tests/validation/env.setup.js @@ -0,0 +1,17 @@ +/** + * Environment setup for validation tests + */ + +// Set TensorFlow.js backend to CPU for consistent testing +process.env.TF_CPP_MIN_LOG_LEVEL = '3'; // Suppress TensorFlow warnings +process.env.CUDA_VISIBLE_DEVICES = ''; // Force CPU-only execution + +// Jest global configuration +global.console = { + ...console, + // Suppress verbose logging during tests + debug: jest.fn(), + info: process.env.NODE_ENV === 'test' ? jest.fn() : console.info, + warn: console.warn, + error: console.error, +}; \ No newline at end of file