diff --git a/package.json b/package.json index a0b6fea..ef365bd 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "scripts": { "proto-gen": "./protocgen.sh", "build": "tsc", - "test": "jest", + "test": "jest --runInBand", "lint": "eslint src --ext .ts", "prettify": "prettier --write ." }, diff --git a/src/__tests__/group-signing-panacea-client.spec.ts b/src/__tests__/group-signing-panacea-client.spec.ts index a57e9bc..7ad4329 100644 --- a/src/__tests__/group-signing-panacea-client.spec.ts +++ b/src/__tests__/group-signing-panacea-client.spec.ts @@ -3,7 +3,7 @@ import { v4 as uuidv4 } from "uuid"; import { TextEncoder } from "util"; import { Secp256k1HdWallet } from "@cosmjs/amino"; import assert from "assert"; -import { panacead } from "./utils/test-utils"; +import { panacead } from "../utils/test-utils"; import { panaceaWalletOpts, SigningPanaceaClient, diff --git a/src/__tests__/panacea-client.test.ts b/src/__tests__/panacea-client.test.ts index 8456dca..5df0350 100644 --- a/src/__tests__/panacea-client.test.ts +++ b/src/__tests__/panacea-client.test.ts @@ -1,5 +1,5 @@ import { PanaceaClient } from "../client/panacea-client"; -import { panacead } from "./utils/test-utils"; +import { panacead } from "../utils/test-utils"; import { DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { panaceaWalletOpts } from "../client/signing-panacea-client"; diff --git a/src/__tests__/secp256k1.spec.ts b/src/__tests__/secp256k1.spec.ts index 58fa8bf..6a34c75 100644 --- a/src/__tests__/secp256k1.spec.ts +++ b/src/__tests__/secp256k1.spec.ts @@ -6,7 +6,7 @@ import { import { TextEncoder } from "util"; import * as jose from "jose"; import { Secp256k1 } from "../crypto"; -import { panacead } from "./utils/test-utils"; +import { panacead } from "../utils/test-utils"; describe("Secp256k1", () => { it("parseMnemonicToPrivateKey", async () => { diff --git a/src/__tests__/signing-panacea-client.test.ts b/src/__tests__/signing-panacea-client.test.ts index e84721d..d2a5afe 100644 --- a/src/__tests__/signing-panacea-client.test.ts +++ b/src/__tests__/signing-panacea-client.test.ts @@ -1,5 +1,5 @@ import { DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; -import { panacead } from "./utils/test-utils"; +import { panacead } from "../utils/test-utils"; import { panaceaWalletOpts, SigningPanaceaClient, diff --git a/src/__tests__/utils/test-utils.ts b/src/utils/test-utils.ts similarity index 100% rename from src/__tests__/utils/test-utils.ts rename to src/utils/test-utils.ts