Skip to content

Commit 76f08d9

Browse files
refactor(bitgo): move utxo tests to test/utxo
The utxo tests do in fact typecheck, so we can move them out of `test/legacy/` Issue: BTC-1450
1 parent cd9ad3c commit 76f08d9

File tree

358 files changed

+8
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+8
-8
lines changed

modules/bitgo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"webpack-dev": "cross-env NODE_ENV=development webpack",
2727
"webpack-prod": "NODE_OPTIONS=--max-old-space-size=4096 cross-env NODE_ENV=production webpack",
2828
"test": "npm run coverage",
29-
"unit-test": "mocha 'test/legacy/v2/unit/**/*.ts' 'test/legacy/unit/**/*.ts'",
29+
"unit-test": "mocha 'test/legacy/v2/unit/**/*.ts' 'test/legacy/unit/**/*.ts' 'test/utxo/**/*.ts'",
3030
"coverage": "nyc -- npm run unit-test",
3131
"integration-test": "nyc -- mocha \"test/legacy/v2/integration/**/*.ts\"",
3232
"browser-test": "karma start karma.conf.js",

modules/bitgo/test/legacy/v2/unit/wallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { TestBitGo } from '@bitgo/sdk-test';
3838
import { BitGo } from '../../../../src';
3939
import * as utxoLib from '@bitgo/utxo-lib';
4040
import { randomBytes } from 'crypto';
41-
import { getDefaultWalletKeys, toKeychainObjects } from './coins/utxo/util';
41+
import { getDefaultWalletKeys, toKeychainObjects } from '../../../utxo/util';
4242
import { Tsol } from '@bitgo/sdk-coin-sol';
4343
import { Teth } from '@bitgo/sdk-coin-eth';
4444

modules/bitgo/test/legacy/v2/unit/coins/utxo/address.ts renamed to modules/bitgo/test/utxo/address.ts

File renamed without changes.

modules/bitgo/test/legacy/v2/unit/coins/utxo/coins.ts renamed to modules/bitgo/test/utxo/coins.ts

File renamed without changes.

modules/bitgo/test/legacy/v2/unit/coins/utxo/descriptorAddress.ts renamed to modules/bitgo/test/utxo/descriptorAddress.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { AbstractUtxoCoin, descriptor as utxod } from '@bitgo/abstract-utxo';
55
import * as utxolib from '@bitgo/utxo-lib';
66
import { IWallet, WalletCoinSpecific } from '@bitgo/sdk-core';
77

8-
import { BitGo } from '../../../../../../src';
8+
import { BitGo } from '../../src';
99

1010
export function getDescriptorAddress(d: string, index: number, network: utxolib.Network): string {
1111
const derivedScript = Buffer.from(

modules/bitgo/test/legacy/v2/unit/coins/utxo/fixtures/bch/addresses-by-chain.json renamed to modules/bitgo/test/utxo/fixtures/bch/addresses-by-chain.json

File renamed without changes.

modules/bitgo/test/legacy/v2/unit/coins/utxo/fixtures/bch/recovery/backupKeyRecovery-p2sh-fullSignedRecovery-customUserKeyPath.json renamed to modules/bitgo/test/utxo/fixtures/bch/recovery/backupKeyRecovery-p2sh-fullSignedRecovery-customUserKeyPath.json

File renamed without changes.

modules/bitgo/test/legacy/v2/unit/coins/utxo/fixtures/bch/recovery/backupKeyRecovery-p2sh-fullSignedRecovery.json renamed to modules/bitgo/test/utxo/fixtures/bch/recovery/backupKeyRecovery-p2sh-fullSignedRecovery.json

File renamed without changes.

modules/bitgo/test/legacy/v2/unit/coins/utxo/fixtures/bch/recovery/backupKeyRecovery-p2sh-keyRecoveryService-dai.json renamed to modules/bitgo/test/utxo/fixtures/bch/recovery/backupKeyRecovery-p2sh-keyRecoveryService-dai.json

File renamed without changes.

modules/bitgo/test/legacy/v2/unit/coins/utxo/fixtures/bch/recovery/backupKeyRecovery-p2sh-keyRecoveryService-keyternal.json renamed to modules/bitgo/test/utxo/fixtures/bch/recovery/backupKeyRecovery-p2sh-keyRecoveryService-keyternal.json

File renamed without changes.

0 commit comments

Comments
 (0)