Move integration test scripts to proper directory structure #13

Closed
opened 2026-06-13 22:02:45 +00:00 by padreug · 0 comments
Owner

Migrated from aiolabs/lamassu-next#13 — opened by @padreug on 2026-01-26.\n\n## Problem

The packages/nostr-client/ root directory contains 8 .mjs script files that should be organized into a proper directory structure:

packages/nostr-client/
├── mock-machine.mjs      (23KB - ATM simulator)
├── test-debit.mjs        (5KB)
├── test-ndebit.mjs       (6KB)
├── test-pay.mjs          (4KB)
├── fund-dev.mjs          (3KB)
├── generate-ndebit.mjs   (2KB)
├── atm-debit-agent.mjs   (9KB)
└── nip44v1.mjs           (4KB)

Proposed Structure

packages/nostr-client/
├── scripts/
│   ├── mock-machine.mjs
│   ├── fund-dev.mjs
│   ├── generate-ndebit.mjs
│   └── atm-debit-agent.mjs
├── examples/
│   └── test-debit.mjs
│   └── test-pay.mjs
│   └── test-ndebit.mjs
└── lib/
    └── nip44v1.mjs (if still needed, otherwise remove)

Alternatively, move mock-machine.mjs to a dedicated apps/mock-atm/ location since it's a substantial (23KB) web server simulation.

Impact

  • Cleaner package structure
  • Easier to find examples
  • Better discoverability for new contributors
  • Package root only contains config files

Priority

P3 - Housekeeping, low urgency

> _Migrated from [aiolabs/lamassu-next#13](https://git.atitlan.io/aiolabs/lamassu-next/issues/13) — opened by @padreug on 2026-01-26._\n\n## Problem The `packages/nostr-client/` root directory contains 8 `.mjs` script files that should be organized into a proper directory structure: ``` packages/nostr-client/ ├── mock-machine.mjs (23KB - ATM simulator) ├── test-debit.mjs (5KB) ├── test-ndebit.mjs (6KB) ├── test-pay.mjs (4KB) ├── fund-dev.mjs (3KB) ├── generate-ndebit.mjs (2KB) ├── atm-debit-agent.mjs (9KB) └── nip44v1.mjs (4KB) ``` ## Proposed Structure ``` packages/nostr-client/ ├── scripts/ │ ├── mock-machine.mjs │ ├── fund-dev.mjs │ ├── generate-ndebit.mjs │ └── atm-debit-agent.mjs ├── examples/ │ └── test-debit.mjs │ └── test-pay.mjs │ └── test-ndebit.mjs └── lib/ └── nip44v1.mjs (if still needed, otherwise remove) ``` Alternatively, move `mock-machine.mjs` to a dedicated `apps/mock-atm/` location since it's a substantial (23KB) web server simulation. ## Impact - Cleaner package structure - Easier to find examples - Better discoverability for new contributors - Package root only contains config files ## Priority P3 - Housekeeping, low urgency
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aiolabs/bitspire#13
No description provided.