Skip to content

Commit

Permalink
absolute import for src/functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bucko13 committed Jun 3, 2024
1 parent 4b8c95e commit f0486bf
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/caravan-psbt/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const config: JestConfigWithTsJest = {
testPathIgnorePatterns: ["./lib"],
transform: {},
setupFiles: ["<rootDir>/jest.setup.ts"],
moduleDirectories: ["node_modules", "<rootDir>"],
};

export default config;
2 changes: 1 addition & 1 deletion packages/caravan-psbt/src/psbtv0/psbt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe("getUnsignedMultisigPsbtV0", () => {
});
});

describe.only("validateMultisigSignaturePsbt", () => {
describe("validateMultisigSignaturePsbt", () => {
TEST_FIXTURES.transactions
.map((fixture) => [psbtArgsFromFixture(fixture), fixture])
.map(([args, fixture]) => [
Expand Down
2 changes: 1 addition & 1 deletion packages/caravan-psbt/src/psbtv0/psbt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { GlobalXpub } from "bip174/src/lib/interfaces.js";
// be sorted out and simplified then we can use the primary module with wasm
import * as ecc from "../../vendor/tiny-secp256k1-asmjs/lib/index.js";
import * as bitcoin from "bitcoinjs-lib-v6";
import { bufferize } from "../functions";
import { bufferize } from "src/functions";
import BigNumber from "bignumber.js";

bitcoin.initEccLib(ecc);
Expand Down
4 changes: 4 additions & 0 deletions packages/caravan-psbt/src/psbtv2/psbtv2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,8 @@ describe("PsbtV2.nLockTime", () => {
});

describe("PsbtV2.FromV0", () => {
silenceDescribe("error", "warn");

test.each(BIP_174_VECTORS_INVALID_PSBT)(
"Throws with BIP0174 test vectors. $case",
(vect) => {
Expand Down Expand Up @@ -1159,6 +1161,8 @@ describe("getPsbtVersionNumber", () => {
});

describe("PsbtV2.addPartialSig", () => {
silenceDescribe("error", "warn");

let psbt;

beforeEach(() => {
Expand Down
6 changes: 6 additions & 0 deletions packages/caravan-psbt/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{
"extends": "@caravan/typescript-config/base.json",
"compilerOptions": {
"baseUrl": ".",
"types": [
"node",
"jest"
],
"paths": {
"src/*": [
"./src/*"
]
}
}
}
2 changes: 1 addition & 1 deletion packages/typescript-config/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"noUnusedParameters": false,
"preserveWatchOutput": true,
"skipLibCheck": true,
"strict": true
"strict": true,
},
"exclude": [
"node_modules"
Expand Down

0 comments on commit f0486bf

Please sign in to comment.