From 1bd827b46c403e3328e71dfd5949512e824e3da5 Mon Sep 17 00:00:00 2001 From: yushi Date: Thu, 2 May 2024 14:09:46 +0800 Subject: [PATCH] debug --- packages/yoroi-extension/index.js | 2 +- packages/yoroi-extension/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/yoroi-extension/index.js b/packages/yoroi-extension/index.js index bfc027873b4..3b747bb3a85 100644 --- a/packages/yoroi-extension/index.js +++ b/packages/yoroi-extension/index.js @@ -906,7 +906,7 @@ class Runtime { } requireModuleOrMock(from, moduleName) { - console.log('>>>', from, moduleName, (new Error).stack); + require('console').debug('>>>', from, moduleName, (new Error).stack); // this module is unmockable if (moduleName === '@jest/globals') { // @ts-expect-error: we don't care that it's not assignable to T diff --git a/packages/yoroi-extension/package.json b/packages/yoroi-extension/package.json index 8438887f42d..3886c044430 100644 --- a/packages/yoroi-extension/package.json +++ b/packages/yoroi-extension/package.json @@ -29,7 +29,7 @@ "flow": "flow --show-all-errors .", "flow-typed": "flow codemod annotate-exports --write --repeat ./app", "flow:install": "flow-typed create-stub insert-pkg-here --typescript", - "test": "cp index.js node_modules/jest-runtime/build && NODE_ENV=jest jest -- --silent=false app/api/ada/index.test.js", + "test": "cp index.js node_modules/jest-runtime/build && NODE_ENV=jest jest --silent=false -- app/api/ada/index.test.js", "test-win": "SET NODE_ENV=jest && jest", "eslint": "npm run eslint-loud -- --quiet", "eslint-loud": "eslint app chrome scripts scripts-mv2 webpack/*.js webpack-mv2/*.js",