Skip to content

Move test files from src/test/ to tests/ directory #272

Description

@DeFiVC

What

Test files are located in src/test/ instead of the tests/ directory, mixing test code with source code.

Why

  • Test files in src/ may be included in production builds
  • Violates the project convention where tests are in tests/ (as documented in AGENTS.md)
  • Makes it harder to distinguish test code from production code

Scope

Move test files from src/test/ to tests/unit/ and update imports.

Files to move:

  • src/test/cache.test.ts
  • src/test/course-cache-and-progress.test.ts
  • src/test/quiz-grading-and-warming.test.ts

Acceptance Criteria

  • No test files remain in src/test/
  • Moved test files are in tests/unit/
  • All tests pass (npm test)
  • tsconfig.json exclude includes tests (already configured)

Technical Context

  • Source: src/test/*.test.ts
  • Destination: tests/unit/
  • Config: tsconfig.json line 23: exclude: [node_modules, dist, tests]
  • Test runner: Vitest (configured in package.json)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programlow

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions