There is an error during integration testing, caused by DB records persisted after the previous test run:
npx @logux/backend-test http://localhost:3000/logux
Protocol version: 4
Secret: parole
Logux server: http://localhost:31337/
Back-end server: http://localhost:3000/logux
✔ 0 Supports token authentication
✔ 1 Supports cookie authentication
✔ 2 Processes an error during the authentication
✔ 3 Detects wrong token
✔ 4 Detects wrong cookie
✔ 5 Sends server subprotocol
✔ 6 Checks users subprotocol
✔ 7 Checks subscription access
✔ 8 Checks action access
✔ 9 Processes an error during the action processing
✔ 10 Processes an error during the subscription
✖ 11 Processes subscriptions
Server sent {"type":"users/name","payload":{"userId":"10","name":"B"}}, instead of {"type":"users/name","payload":{"userId":"10","name":"Name"}} action
Test: file:///Users/dreikanter/amplifr/logux-rack/tests/backend-test/node_modules/@logux/backend-test/tests/actions.js:53:3
Re-run it: npx @logux/backend-test http://localhost:3000/logux 11
It would be nice to wrap the tests execution with a docker-compose configuration, to execute the whole thing with a single command: