Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: LIVE-11879 LiveConfig for bot #6553

Merged
merged 1 commit into from
Mar 27, 2024
Merged
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
5 changes: 5 additions & 0 deletions .changeset/grumpy-cars-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/live-common": patch
---

fix bot test due to liveConfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { setSupportedCurrencies } from "../../currencies";
import { EnvName, setEnvUnsafe, setEnv } from "@ledgerhq/live-env";
import { setWalletAPIVersion } from "../../wallet-api/version";
import { WALLET_API_VERSION } from "../../wallet-api/constants";
import { LiveConfig } from "@ledgerhq/live-config/LiveConfig";
import { liveConfig } from "../../config/sharedConfig";

setWalletAPIVersion(WALLET_API_VERSION);
setSupportedCurrencies([
Expand Down Expand Up @@ -98,6 +100,7 @@ setSupportedCurrencies([
"linea",
"linea_goerli",
]);
LiveConfig.setConfig(liveConfig);

for (const k in process.env) setEnvUnsafe(k as EnvName, process.env[k]);

Expand Down
3 changes: 0 additions & 3 deletions libs/ledger-live-common/src/__tests__/test-helpers/setup.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import "./environment";
import BigNumber from "bignumber.js";
import { liveConfig } from "../../config/sharedConfig";
import { LiveConfig } from "@ledgerhq/live-config/LiveConfig";

LiveConfig.setConfig(liveConfig);
hedi-edelbloute marked this conversation as resolved.
Show resolved Hide resolved
jest.setTimeout(360000);

expect.extend({
Expand Down
Loading