Skip to content

Create a Test Fixture factory for Organization data #397

@codeZe-us

Description

@codeZe-us

When testing complex flows, seeding the database layer with nested relational dependencies (Organizations -> Teams -> Roles) creates massive boilerplate. We need a clean Test Fixture factory.

Implementation Guidelines

Key Files: src/server/test/fixtures/organization.fixture.ts (new file).

  • Create a builder class or functional pipeline to automatically construct and insert a valid Organization tree.
  • Leverage libraries like faker or hardcoded sane defaults that can be optionally overwritten.

Expectations

What done looks like: Complex integration tests can invoke createTestOrganization({ withWallet: true }) in exactly one line to set up full architectural DB primitives.

Discord for any questions: codeze_us

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions