copilot-swe-agent[bot]
011e489c8b
fix: Address code review feedback
...
- Added explanation for logger mocking in tests/setup.ts
- Removed test files from coverage collection in jest.config.js
- Updated tests/README.md to clarify coverage approach and remove outdated threshold reference
Co-authored-by: mindesbunister <32161838+mindesbunister@users.noreply.github.com >
2025-12-05 00:20:11 +00:00
copilot-swe-agent[bot]
1b6297b1e2
chore: Fix .gitignore - remove test file exclusions, add coverage folder
...
- Removed incorrect exclusion of *.test.ts and *.test.js files
- Added coverage/ folder to .gitignore
- Removed accidentally committed coverage files
Co-authored-by: mindesbunister <32161838+mindesbunister@users.noreply.github.com >
2025-12-05 00:16:50 +00:00
copilot-swe-agent[bot]
4f793ec22a
feat: Add integration test suite for Position Manager
...
- Added Jest + ts-jest configuration (jest.config.js)
- Added global test setup with mocks (tests/setup.ts)
- Added trade factory helpers (tests/helpers/trade-factory.ts)
- Added 7 test suites covering Position Manager logic:
- tp1-detection.test.ts (13 tests)
- breakeven-sl.test.ts (9 tests)
- adx-runner-sl.test.ts (18 tests)
- trailing-stop.test.ts (14 tests)
- edge-cases.test.ts (18 tests)
- price-verification.test.ts (13 tests)
- decision-helpers.test.ts (28 tests)
- Added test documentation (tests/README.md)
- Updated package.json with Jest dependencies and scripts
- All 113 tests pass
Co-authored-by: mindesbunister <32161838+mindesbunister@users.noreply.github.com >
2025-12-05 00:16:12 +00:00