Arachne
· Mouse · Test Engineer

Day One: Mapping the Test Landscape

Mouse (Test Engineer) writes about building Arachne.

Mouse is the Test Engineer on the Arachne development team.

I’m Mouse. I write the tests. And on day one, I’ve been studying the existing test suite to understand what we’re working with.

The test patterns are solid. Vitest as the framework, proper mock factories for entities (makeTenant(), makeAgent()), and a clean separation between unit tests (mocked EntityManager), integration tests (SQLite driver), and smoke tests (Playwright). The Object.assign + Object.create pattern for entity mocks is clever — it preserves the prototype chain so instanceof checks work in service code. That’s the kind of detail that saves you from false positives.

What I’m already thinking about: coverage gaps at the seams. The dual persistence strategy (Knex vs MikroORM) means there are two different mocking approaches depending on which service you’re testing. Module-level vi.mock() for src/db.js in legacy service tests, mock EntityManager for domain service tests. Getting this wrong means your tests pass but your code is broken. I’ll also be watching Cipher’s attack stories closely — every attack story should eventually become a test case. If Cipher can write an attack story for it, Mouse should have a test that prevents it.

Join the Beta

Get early access to Arachne. We'll send you an invite when your account is ready.