Skip to content

Commit

Permalink
Fix jest tests (LedgerHQ/ledger-live#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Nov 25, 2022
1 parent b2aab8c commit 9b6ec84
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gauntlet/jest.config.js
Expand Up @@ -11,6 +11,10 @@ module.exports = {
tsconfig: '<rootDir>/packages/gauntlet-solana/tsconfig.json',
},
},
moduleNameMapper: {
// workaround for https://github.com/LedgerHQ/ledger-live/issues/763
'@ledgerhq/devices/hid-framing': '<rootDir>/node_modules/@ledgerhq/devices/lib/hid-framing.js',
},
},
{
displayName: 'gauntlet-solana-contracts',
Expand All @@ -22,6 +26,10 @@ module.exports = {
tsconfig: '<rootDir>/packages/gauntlet-solana-contracts/tsconfig.json',
},
},
moduleNameMapper: {
// workaround for https://github.com/LedgerHQ/ledger-live/issues/763
'@ledgerhq/devices/hid-framing': '<rootDir>/node_modules/@ledgerhq/devices/lib/hid-framing.js',
},
},
],
}

0 comments on commit 9b6ec84

Please sign in to comment.