mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-06 11:36:44 +03:00
- Update Bun version in CI to match local version (1.2.16) - Add bunfig.toml with 5s test timeout to prevent hanging tests - Mock setTimeout globally in test setup to avoid timing issues - Add NODE_ENV check to skip delays during tests - Fix missing exports in config-encryption mock - Remove retryDelay in tests to ensure immediate execution These changes ensure tests run consistently between local and CI environments
6 lines
152 B
TOML
6 lines
152 B
TOML
[test]
|
|
# Set test timeout to 5 seconds (5000ms) to prevent hanging tests
|
|
timeout = 5000
|
|
|
|
# Preload the setup file
|
|
preload = ["./src/tests/setup.bun.ts"] |