ee/packages/federation-matrix/README.md
Rocket.Chat's Matrix federation integration package for cross-platform communication.
Before running integration tests, add the following entries to your /etc/hosts file:
127.0.0.1 element
127.0.0.1 hs1
127.0.0.1 rc1
The integration test script builds Rocket.Chat locally, starts federation services (Rocket.Chat, Synapse, MongoDB), waits for all services to be ready, then runs end-to-end tests. The script automatically handles cleanup unless you specify otherwise.
--image [IMAGE]: Uses a pre-built Docker image instead of building locally (defaults to rocketchat/rocket.chat:latest if no image specified)--keep-running: Keeps containers running after tests complete for manual validation--element: Includes Element web client in the test environment--no-test: Starts containers and skips running tests (useful for manual testing or debugging)Basic local testing:
yarn test:integration
Test with pre-built image:
yarn test:integration --image
Test with specific pre-built image:
yarn test:integration --image rocketchat/rocket.chat:latest
Keep services running for manual inspection:
yarn test:integration --keep-running
Run with Element client:
yarn test:integration --element
Start containers only (skip tests):
yarn test:integration --no-test
Start containers with Element and keep them running (skip tests):
yarn test:integration --keep-running --element --no-test
Combine flags:
yarn test:integration --image rocketchat/rocket.chat:latest --keep-running --element