Commit Graph

7 Commits

Author SHA1 Message Date
david eeb0f7970a refactor(tests): update remaining test files for ephemeral team model 2026-04-26 16:44:48 -07:00
david b90ec08966 refactor: improve test structure for Bun compatibility
Pull Request / unit-tests (pull_request) Failing after 58s
Pull Request / acceptance-tests (pull_request) Has been skipped
Pull Request / analyze-bump-type (pull_request) Has been skipped
- Update all test files to use named mock variables instead of inline mocks
- Clear mock history in beforeEach instead of using mock.restore()
- Add default mock implementations stored at module level
- Document that tests should not use --randomize flag due to mock.module() limitations
- All 89 unit tests pass consistently without randomization
2026-04-01 01:05:01 -07:00
david 24db43eb7f feat: migrate from npm to Bun
Test / unit-tests (push) Failing after 1m54s
Pull Request / unit-tests (pull_request) Failing after 1m41s
Pull Request / acceptance-tests (pull_request) Has been skipped
Pull Request / analyze-bump-type (pull_request) Has been skipped
- Install Bun via mise
- Update package.json scripts to use Bun
- Migrate unit tests from Vitest to Bun test runner
- Migrate component tests from Vitest to Bun test runner
- Configure Bun with DOM environment for React Testing Library
- Keep Playwright for E2E tests (as planned)
- 93/100 tests passing (7 flaky tests when running all together, pass individually)
2026-04-01 00:13:15 -07:00
david b0aaffbecf chore: fix linting errors in tests and api routes 2026-03-30 22:58:33 -07:00
david 4d9cbc9259 fix: add site_admin support to tournament permissions and fix session cache issues 2026-03-30 22:09:50 -07:00
david d821dd7ce2 fix: include participants in getManageableTournaments query 2026-03-30 21:34:16 -07:00
david 710e4f811e test: add comprehensive tests for player deduplication, permissions, and user management 2026-03-30 21:31:55 -07:00