File tree Expand file tree Collapse file tree 4 files changed +22
-3
lines changed Expand file tree Collapse file tree 4 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 33docker-target
44target
55test-ledger
6+ tests /fixtures /
67** /* .rs.bk
78
89# Node.js
Original file line number Diff line number Diff line change @@ -109,19 +109,19 @@ alias rw := rust-write
109109# Run all tests
110110# To debug the Solana logs, run this as `RUST_LOG=debug just test`
111111[group (" test" )]
112- test * args : build
112+ test * args : build _setup-fixtures
113113 na vitest run --hideSkippedTests {{ args }}
114114alias t := test
115115
116116# Run all tests without building
117117[group (" test" )]
118- test-lite * args :
118+ test-lite * args : _setup-fixtures
119119 na vitest run --hideSkippedTests {{ args }}
120120alias tl := test-lite
121121
122122# Run tests with UI
123123[group (" test" )]
124- test-ui * args : build
124+ test-ui * args : build _setup-fixtures
125125 na vitest --hideSkippedTests --ui {{ args }}
126126alias tui := test-ui
127127
@@ -136,3 +136,21 @@ alias tlk := test-lockup
136136test-merkle-instant * args = " tests/merkle-instant":
137137 just test {{ args }}
138138alias tmi := test-merkle-instant
139+
140+ # Download external program fixtures for testing
141+ _ setup-fixtures :
142+ #!/usr/bin/env sh
143+ FIXTURES_DIR=" tests/fixtures"
144+
145+ if [ ! -d " $FIXTURES_DIR" ]; then
146+ echo " 📦 Setting up fixtures..."
147+ mkdir -p " $FIXTURES_DIR"
148+
149+ # Token Metadata Program
150+ echo " 📥 Downloading Token Metadata program..."
151+ solana program dump -u m metaqbxxUerdq28 cj1RbAWkYQm3ybzjb6a8bt518 x1s " $FIXTURES_DIR/token_metadata_program.so"
152+
153+ # Chainlink Program
154+ echo " 📥 Downloading Chainlink program..."
155+ solana program dump -u m HEvSKofvBgfaexv23 kMabbYqxasxU3mQ4ibBMEmJWHny " $FIXTURES_DIR/chainlink_program.so"
156+ fi
You can’t perform that action at this time.
0 commit comments