🔖 Checkpoint: Edit /workspaces/claude-code-flow/user-service/tests/setup.ts

This commit is contained in:
rUv committed 2025-08-06 14:03:59 +00:00
1 parent f1754bd98a
commit 0bc73aad9b
3 files changed
+13

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250806-140349", "file": "/workspaces/claude-code-flow/user-service/jest.config.js", "timestamp": "2025-08-06T14:03:49Z", "type": "pre-edit", "original_branch": "alpha-88"}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250806-140350", "file": "/workspaces/claude-code-flow/user-service/jest.config.js", "timestamp": "2025-08-06T14:03:50Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/task-metrics.json | 6 +++--- .claude/checkpoints/1754489020.json | 1 + benchmark/.claude/checkpoints/task-1754489020.json | 1 + claude-flow-wiki | 0 user-service/jest.config.js | 16 ++++++++++++++++ 6 files changed, 22 insertions(+), 4 deletions(-) "}
+11
View File
@@ -0,0 +1,11 @@
import { userRepository } from '../src/repositories/user.repository';
// Clear database before each test
beforeEach(async () => {
await userRepository.clear();
});
// Set test environment
process.env.NODE_ENV = 'test';
process.env.JWT_SECRET = 'test-secret-key';
process.env.LOG_LEVEL = 'error';