Skip to content

test: add ECS EntityId + utility unit tests, test runner, and CI#1027

Merged
braedonsaunders merged 1 commit into
mainfrom
codex/create-test-suites-for-github-actions
Jan 25, 2026
Merged

test: add ECS EntityId + utility unit tests, test runner, and CI#1027
braedonsaunders merged 1 commit into
mainfrom
codex/create-test-suites-for-github-actions

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner

Motivation

  • Improve unit test coverage for core engine utilities (EntityId allocator, FixedPoint, MerkleTree, GameLoop) to catch regressions in allocation, determinism, and timing behavior.
  • Provide a hermetic test build/run flow and CI so tests run consistently in CI and locally.

Description

  • Add unit tests under tests/ for EntityId (tests/engine/ecs/entityId.test.ts), GameLoop (tests/engine/core/gameLoop.test.ts), MerkleTree (tests/engine/network/merkleTree.test.ts), and FixedPoint utilities (tests/utils/fixedPoint.test.ts).
  • Add test tooling and aliases: scripts/test-alias.cjs to resolve @/ imports to compiled test output and tsconfig.test.json to compile tests to dist-tests.
  • Wire up test runner via package.json test script and add CI workflow at .github/workflows/ci.yml to run lint, type-check, test, and build; update .gitignore and README.md to include test artifacts and instructions.

Testing

  • Ran npm run test, which compiles tests and executes them; all automated tests passed (# tests 18, # pass 18, # fail 0).
  • Test suites executed include GameLoop fallback timing, EntityId utilities / EntityIdAllocator, MerkleTree utilities, and FixedPoint utilities, and they completed successfully.
  • The test harness and alias resolver (scripts/test-alias.cjs) were exercised during the run and functioned as expected.

Codex Task

@vercel

vercel Bot commented Jan 25, 2026

Copy link
Copy Markdown

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

Project Deployment Review Updated (UTC)
voidstrike Ready Ready Preview, Comment Jan 25, 2026 4:48am

Request Review

@braedonsaunders braedonsaunders merged commit e157ff8 into main Jan 25, 2026
5 of 6 checks passed
@braedonsaunders braedonsaunders deleted the codex/create-test-suites-for-github-actions branch January 26, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant