Generates an array of test communities with random attributes.
number of new communities to create.
Creates a new community with random attributes (id, title, description).
Generates a test post with random attributes for all fields.
the community the created post is part of.
Generates a test user with random attributes (id, username, name).
Sets up and tears down the database before and after each test.
the test to be run after the database is set up.
Generated using TypeDoc
@unifed/backend-testing
This package contains code used for testing the backend; it is not used in production. This includes helper functions for generating fake posts, users and communities, as well as database setup and teardown routines.