testing/cross_backend/session_login.ts view source
(fixture: TestFixture, options: LoginFreshSessionOptions): Promise<FetchTransport> import {login_fresh_session} from '@fuzdev/fuz_app/testing/cross_backend/session_login.js'; Log username in on a fresh transport: one login, one session, one jar
holding exactly that session's cookie, which every call on the transport
re-sends. The fixture's own transport carries the keeper's cookie, so a
login there would leave the jar holding two.
fixture
the per-test fixture whose backend the login goes to
options
the route, the credentials, and a label for failures
returns
Promise<FetchTransport>
the transport holding the new session's cookie