From 9b6ec8488a3bb0ddc74cbc5ba39eb155f3ed4309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Fri, 25 Nov 2022 12:11:23 +0900 Subject: [PATCH] Fix jest tests (https://github.com/LedgerHQ/ledger-live/issues/763) --- gauntlet/jest.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gauntlet/jest.config.js b/gauntlet/jest.config.js index 8e90952d5..ea1499490 100644 --- a/gauntlet/jest.config.js +++ b/gauntlet/jest.config.js @@ -11,6 +11,10 @@ module.exports = { tsconfig: '/packages/gauntlet-solana/tsconfig.json', }, }, + moduleNameMapper: { + // workaround for https://github.com/LedgerHQ/ledger-live/issues/763 + '@ledgerhq/devices/hid-framing': '/node_modules/@ledgerhq/devices/lib/hid-framing.js', + }, }, { displayName: 'gauntlet-solana-contracts', @@ -22,6 +26,10 @@ module.exports = { tsconfig: '/packages/gauntlet-solana-contracts/tsconfig.json', }, }, + moduleNameMapper: { + // workaround for https://github.com/LedgerHQ/ledger-live/issues/763 + '@ledgerhq/devices/hid-framing': '/node_modules/@ledgerhq/devices/lib/hid-framing.js', + }, }, ], }