From a9cf76cad1dd0bfb5d07951b295109e9bf7c91b0 Mon Sep 17 00:00:00 2001 From: Otto Allmendinger Date: Fri, 16 Jan 2026 11:55:28 +0100 Subject: [PATCH] feat(bitgo): use unminified BitGoJS for browser tests Use the unminified BitGoJS.js file for browser tests to provide more useful stack traces. Add compile-test script reference in the browser-tests command. Issue: BTC-2936 Co-authored-by: llm-git --- modules/bitgo/karma.conf.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/bitgo/karma.conf.js b/modules/bitgo/karma.conf.js index 83e207d427..45354f3fac 100644 --- a/modules/bitgo/karma.conf.js +++ b/modules/bitgo/karma.conf.js @@ -15,7 +15,7 @@ module.exports = function (config) { // list of files / patterns to load in the browser files: [ - 'dist/browser/BitGoJS.min.js', + 'dist/browser/BitGoJS.js', 'test/browser/karmaHelper.js', { pattern: 'test/browser/**/*.ts' }, { pattern: 'dist/browser/*.wasm', included: false, served: true, watched: false, nocache: true }, diff --git a/package.json b/package.json index feee4e70c1..3c81dd2250 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "lint": "lerna run lint --stream", "lint-changed": "lerna run lint --since origin/${GITHUB_REPO_BRANCH:-master}..HEAD --stream", "unit-test-changed": "lerna run unit-test --since $(git merge-base HEAD~ origin/${GITHUB_REPO_BRANCH:-master}) --stream", - "browser-tests": "lerna run --scope bitgo compile && lerna run --scope bitgo browser-test && lerna run --scope @bitgo/web-demo test", + "browser-tests": "lerna run --scope bitgo compile-test && lerna run --scope bitgo browser-test && lerna run --scope @bitgo/web-demo test", "gen-coverage-changed": "lerna run gen-coverage --since origin/${GITHUB_REPO_BRANCH:-master}..HEAD --stream --parallel", "coverage-changed": "lerna run upload-coverage --since origin/${GITHUB_REPO_BRANCH:-master}..HEAD --stream --parallel --", "unit-test": "lerna run unit-test --stream",