Tests for the ConnectRPC organization service.
-
Copy environment template
cp tests/.env.example tests/.env
-
Create a test user and update credentials
- The
.env.examplecontains placeholder values - Create a test user in your database (via signup API or database directly)
- Update
tests/.envwith:TEST_EMAIL: The user's emailTEST_PASSWORD: The user's passwordTEST_USER_ID: The user's ID from the database
Example for local development:
- Default test credentials:
test@example.com/test_password_123 - Find the user ID in your database and update
TEST_USER_ID
- The
# Start server first pnpm dev:server # Run tests pnpm test:apiOrganization CRUD (tests/api/orgs.hurl)
- Authentication
- List/Create/Get/Update/Delete operations
- "Properties file does not exist": Copy
tests/.env.exampletotests/.env - 404 errors: Make sure server is running on port 9876
- Auth failed: Verify credentials in
tests/.envmatch database