Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1084,3 +1084,35 @@ If you see errors like `Cannot find module '@ledgerhq/hw-transport-node-hid'` or
- Open the appropriate app (Ethereum or Solana) on the device
- Try different USB ports or cables
- Close Ledger Live if it's running (it may lock the device)

## Running in Debug (vscode launch.json configurations - tested on Ubuntu)
- Run single test file outside project (eg. import Chain or Connector and .init())
{
"type": "node",
"request": "launch",
"name": "BUILD/DEBUG SINGLE FILE: src/testnojest.ts +externalTerminal",
"program": "${workspaceFolder}/dist/osmosis.testnojest.js",
"preLaunchTask": "npm: build",
"args": ["--passphrase=PASSPHRASE", "--dev"],
"env":{"START_SERVER":"true", "GATEWAY_TEST_MODE":"dev"},
"internalConsoleOptions": "openOnSessionStart",
"console": "externalTerminal",
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
]
},
- Run whole project in debug mode (breakpoints work on TS files)
{
"type": "node",
"request": "launch",
"name": "BUILD/DEBUG FULL: index.js +externalTerminal for info()",
"console": "externalTerminal",
"program": "${workspaceFolder}/dist/index.js",
"preLaunchTask": "npm: build",
"args": ["--passphrase=PASSPHRASE", "--dev"],
"env":{"START_SERVER":"true", "GATEWAY_TEST_MODE":"dev"},
"internalConsoleOptions": "openOnSessionStart",
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
]
},
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ module.exports = {
testMatch: ['<rootDir>/test/**/*.test.ts', '<rootDir>/test/**/*.test.js'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
"node_modules/@scure/.*.(j|t)sx?$": "ts-jest"
},
transformIgnorePatterns: ['/node_modules/(?!.*superjson)'],
transformIgnorePatterns: [], //'/node_modules/(?!.*superjson)'],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
prefix: '<rootDir>/',
useESM:true,
}),
};
Loading
Loading