Skip to content

refactor(season): move season tests to integration test file and add …#482

Merged
Olowodarey merged 2 commits intoArena1X:mainfrom
Sendi0011:feat/move-season-tests-325
Mar 29, 2026
Merged

refactor(season): move season tests to integration test file and add …#482
Olowodarey merged 2 commits intoArena1X:mainfrom
Sendi0011:feat/move-season-tests-325

Conversation

@Sendi0011
Copy link
Copy Markdown
Contributor


Move Season Tests to Integration Test File + Add Transition Test

Closes #325

What changed:

  • Moved all season test functions from contract/src/season_tests.rs into a new contract/tests/season_tests.rs integration test file, consistent with how escrow_tests, invite_tests, and others are structured
  • Updated imports from crate:: to insightarena_contract:: (external crate path)
  • Removed the #[cfg(test)] mod season_tests; declaration from lib.rs
  • Deleted contract/src/season_tests.rs
  • Added test_season_transition_preserves_data: creates two sequential seasons, finalizes the first, then asserts the finalized season's data (leaderboard snapshot, reward pool, top winner) remains intact after the second season is created and activated

Why:
Inline test modules in src/ bypass integration boundaries. Moving to tests/ ensures season logic is tested through the public contract API, matching the project's established pattern.

…transition test

- Move all tests from contract/src/season_tests.rs to contract/tests/season_tests.rs
- Update imports to use insightarena_contract:: crate path
- Remove #[cfg(test)] mod season_tests declaration from lib.rs
- Delete contract/src/season_tests.rs
- Add test_season_transition_preserves_data: verifies historical season data
  (leaderboard snapshot, reward pool, top winner) is preserved after a new
  season is created and activated

Closes Arena1X#325
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
insight-arena-4rll Ready Ready Preview, Comment Mar 29, 2026 6:26pm

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 29, 2026

@Sendi0011 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Olowodarey Olowodarey merged commit 67ea6a7 into Arena1X:main Mar 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[contract] Move Season Tests and Add New Test

2 participants