🔖 Checkpoint: Edit /workspaces/claude-code-flow/agentic-flow/src/tests/validation/env.setup.js

This commit is contained in:
rUv committed 2025-08-04 15:11:15 +00:00
1 parent 8a30b00e1d
commit ff2db6df81
3 files changed
+19

No files matched your search

+1
View File
@@ -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"}
+1
View File
@@ -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(-) "}
@@ -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,
};