Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
907bdb6
chore: improvements to config
tuliomir Oct 1, 2025
0636e75
chore: typing the test logger
tuliomir Oct 1, 2025
34e5e87
chore: adapts walletApi to serverless response
tuliomir Oct 1, 2025
1b27201
test: helper functions and structure
tuliomir Oct 1, 2025
1fc3121
test: start tests
tuliomir Oct 1, 2025
2f64536
test: wallet public method tests
tuliomir Oct 1, 2025
b3ab813
test: empty wallet address tests
tuliomir Oct 1, 2025
2bc52a0
test: basic transaction tests
tuliomir Oct 1, 2025
2fdd1bb
test: balance tests
tuliomir Oct 1, 2025
8d2cecc
test: addresses with tx tests
tuliomir Oct 1, 2025
3fcbe56
test: utxo tests
tuliomir Oct 1, 2025
1e71119
fix: incorrect imports not from source
tuliomir Oct 2, 2025
d154fa3
feat: retries requests on wallet service tests
tuliomir Oct 2, 2025
4bac4ef
feat: retries wallet-not-found errors
tuliomir Oct 6, 2025
34b09c3
fix: import delay fn
tuliomir Oct 6, 2025
cf7ef69
fix: failing tests
tuliomir Oct 6, 2025
c728b35
fix: unhandled promises
tuliomir Oct 6, 2025
7ed3eed
refactor: removes unnecessary consoles
tuliomir Oct 7, 2025
5fb57c7
fix: pooling logic
tuliomir Oct 7, 2025
e5341b6
Merge branch 'master' into test/not-websocket
tuliomir Oct 17, 2025
6738a88
chore: removes unnecessary forceExit
tuliomir Oct 17, 2025
2712005
chore: revert forceExit
tuliomir Oct 17, 2025
8b434d2
Merge branch 'master' into test/not-websocket
tuliomir Oct 17, 2025
50d7831
Merge branch 'master' into test/not-websocket
tuliomir Nov 17, 2025
4b09012
fix: serverUrl test
tuliomir Nov 19, 2025
6269974
fix: poll typo and consoles
tuliomir Nov 26, 2025
8e297df
chore: improves modularization and log message
tuliomir Nov 26, 2025
c10f4d3
Merge branch 'master' into test/not-websocket
tuliomir Nov 26, 2025
0a7a2e5
docs: explains 404 issue
tuliomir Dec 8, 2025
a08471e
Merge branch 'master' into test/not-websocket
tuliomir Dec 8, 2025
7364dda
fix: optional token version
tuliomir Dec 9, 2025
d325729
fix: token details response schema
tuliomir Dec 9, 2025
baa1ad5
refactor: retryConfig instead of slowWallets
tuliomir Dec 10, 2025
3e04c55
chore: improves criteria for retrying
tuliomir Dec 10, 2025
363390e
docs: removes logging
tuliomir Dec 10, 2025
575f590
refactor: moves default values to constants
tuliomir Dec 10, 2025
cbb189a
docs: improves wording
tuliomir Dec 10, 2025
bfe2527
chore: disables keep-alive in axios for tests
tuliomir Dec 11, 2025
af85127
chore: removes retry logic
tuliomir Dec 11, 2025
64f43d0
chore: removes obsolete code
tuliomir Dec 12, 2025
9b045be
chore: adds error console on async auth token fail
tuliomir Dec 12, 2025
7d5f45c
Revert "chore: adds error console on async auth token fail"
tuliomir Dec 12, 2025
293a581
fix: restores 404 validation
tuliomir Dec 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions __tests__/integration/utils/logger.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@
import winston from './placeholder-logger.util';
import testConfig from '../configuration/test.config';

export const loggers = {
export const loggers: {
test?: LoggerUtil;
walletBenchmark?: LoggerUtil;
txBenchmark?: LoggerUtil;
} = {
/**
* @type: TxLogger
*/
test: null,
walletBenchmark: null,
txBenchmark: null,
test: undefined,
walletBenchmark: undefined,
txBenchmark: undefined,
};

/**
Expand Down Expand Up @@ -106,7 +110,7 @@ export class LoggerUtil {
* @param {Record<string,unknown>} [metadata] Additional data for winston logs
* @returns {void}
*/
log(input, metadata) {
log(input, metadata?) {
this.#logger.info(input, metadata);
}

Expand All @@ -117,7 +121,7 @@ export class LoggerUtil {
* @param {Record<string,unknown>} [metadata] Additional data for winston logs
* @returns {void}
*/
warn(input, metadata) {
warn(input, metadata?) {
this.#logger.warn(input, metadata);
}

Expand All @@ -128,7 +132,7 @@ export class LoggerUtil {
* @param {Record<string,unknown>} [metadata] Additional data for winston logs
* @returns {void}
*/
error(input, metadata) {
error(input, metadata?) {
this.#logger.error(input, metadata);
}
}
Loading
Loading