waygraph / MemStubContext
Interface: MemStubContext
Defined in: src/engine/mem/mem-stub.ts:24
What a mem stub is given.
Properties
unique
unique:
string
Defined in: src/engine/mem/mem-stub.ts:30
A token for test data that must not collide: different every run, the same for every stub within one run (so an email and a username made from it match), and different across parallel workers.
Example
ts
registerMemStub(Signup.email, ({ unique }) => `qa+${unique}@example.com`)