Skip to content

Commit

Permalink
fix: module not found for wallet.spec.ts and type update
Browse files Browse the repository at this point in the history
  • Loading branch information
notTanveer committed Jan 2, 2025
1 parent e63051d commit 09b0252
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/core/test/scanning.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { scanOutputs } from '../src';
import { LabelMap, scanOutputs } from '../src';
import { Buffer } from 'buffer';
import { testData } from './fixtures/scanning';

Expand All @@ -20,7 +20,7 @@ describe('Scanning', () => {
Buffer.from(sumOfInputPublicKeys, 'hex'),
Buffer.from(inputHash, 'hex'),
outputs.map((output) => Buffer.from(output, 'hex')),
labels,
labels as LabelMap,
);

expect(result).toStrictEqual(
Expand Down
4 changes: 2 additions & 2 deletions packages/wallet/test/wallet.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as fs from 'fs';
import { BitcoinRpcClient } from './helpers/bitcoin-rpc-client';
import { Wallet } from '../src';
import { WalletDB } from '@silent-pay/level';
import { EsploraClient } from '@silent-pay/esplora';
import { WalletDB } from '@silent-pay/level/src/db';
import { EsploraClient } from '@silent-pay/esplora/src/esplora';

describe('Wallet', () => {
let wallet: Wallet;
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"@silent-pay/wallet": ["./packages/wallet/src"]
}
},
"include": ["packages/core/src", "packages/esplora/src", "packages/level/src", "packages/wallet/src"],
"include": ["src"],
"exclude": ["**/*.spec.ts", "node_modules/**/*"]
}
}

0 comments on commit 09b0252

Please sign in to comment.