Open
Conversation
Creates 3 fixed E2E test users in MongoDB (idempotent): +15550000001 (e2e-alice) — primary tester +15550000002 (e2e-bob) — secondary user for transfers +15550000003 (e2e-carol) — tertiary user Each user gets: - Deterministic kratosUserId (stable across resets) - BTC + USD wallets - AccountStatus.Active + AccountLevel.One - Location metadata (Kingston, JM) Outputs /tmp/e2e-users.json with accountIds/walletIds for use by Maestro OTP bypass code: 000000 (local dev + test env only) Usage: yarn ts-node --project tsconfig.json -r tsconfig-paths/register dev/seed/seed-e2e.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
dev/seed/seed-e2e.ts— creates fixed E2E test users directly in MongoDB (idempotent, no Ibex API calls required).Approach
Bypasses the app layer entirely to avoid Ibex API calls during wallet creation. Writes User, Account, and Wallet documents directly via Mongoose, which is safe for local dev seeding.
Test accounts
OTP bypass works on local dev stack and api.test.flashapp.me only.
Usage
yarn run v1.22.22
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Outputs /tmp/e2e-users.json with accountIds + walletIds for Maestro.
Companion to lnflash/flash-mobile#577