@ledgerhq/coin-polkadot
Advanced tools
Comparing version
/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */ | ||
module.exports = { | ||
preset: "ts-jest", | ||
coverageDirectory: "coverage", | ||
collectCoverageFrom: ["src/**/*.ts"], | ||
passWithNoTests: true, | ||
collectCoverageFrom: [ | ||
"src/**/*.ts", | ||
"!src/**/*.test.ts", | ||
"!src/**/*.spec.ts", | ||
"!src/test/**/*.ts", | ||
], | ||
coverageReporters: ["json", ["lcov", { file: "polkadot-lcov.info", projectRoot: "../" }], "text"], | ||
testEnvironment: "node", | ||
testPathIgnorePatterns: ["lib/", "lib-es/", ".*\\.integ\\.test\\.[tj]s"], | ||
testPathIgnorePatterns: ["lib/", "lib-es/", ".*\\.(integ|integration)\\.test\\.[tj]s"], | ||
modulePathIgnorePatterns: ["src/test/coin-tester"], | ||
setupFilesAfterEnv: ["jest-expect-message", "dotenv/config"], | ||
reporters: [ | ||
[ | ||
"jest-sonar", | ||
{ outputName: "polkadot-sonar-executionTests-report.xml", reportedFilePath: "absolute" }, | ||
], | ||
], | ||
}; |
@@ -7,2 +7,3 @@ /** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */ | ||
testPathIgnorePatterns: ["lib/", "lib-es/"], | ||
testTimeout: 60_000, | ||
}; |
@@ -41,3 +41,3 @@ import { createApi } from "."; | ||
describe("listOperations", () => { | ||
it("returns a list regarding address parameter", async () => { | ||
it.skip("returns a list regarding address parameter", async () => { | ||
// When | ||
@@ -52,3 +52,3 @@ const [tx, _] = await module.listOperations(address, { minHeight: 0 }); | ||
}, 20000); | ||
it("returns all operations", async () => { | ||
it.skip("returns all operations", async () => { | ||
// When | ||
@@ -72,3 +72,3 @@ const [tx, _] = await module.listOperations(address, { minHeight: 0 }); | ||
describe("getBalance", () => { | ||
it("returns a list regarding address parameter", async () => { | ||
it("should fetch balance", async () => { | ||
// When | ||
@@ -75,0 +75,0 @@ const result = await module.getBalance(address); |
@@ -18,4 +18,4 @@ import { ApiPromise, HttpProvider } from "@polkadot/api"; | ||
expect(requestCount).toBeLessThanOrEqual(40); // should not exceed 50 requests | ||
}, 10000); | ||
}); | ||
}); | ||
//# sourceMappingURL=node.integ.test.js.map |
@@ -73,3 +73,3 @@ import BigNumber from "bignumber.js"; | ||
describe("getValidators", () => { | ||
it("returns expected result", async () => { | ||
it.skip("returns expected result", async () => { | ||
const result = await getValidators(); | ||
@@ -76,0 +76,0 @@ expect(result).toEqual(expect.arrayContaining([ |
@@ -43,3 +43,3 @@ "use strict"; | ||
describe("listOperations", () => { | ||
it("returns a list regarding address parameter", async () => { | ||
it.skip("returns a list regarding address parameter", async () => { | ||
// When | ||
@@ -54,3 +54,3 @@ const [tx, _] = await module.listOperations(address, { minHeight: 0 }); | ||
}, 20000); | ||
it("returns all operations", async () => { | ||
it.skip("returns all operations", async () => { | ||
// When | ||
@@ -74,3 +74,3 @@ const [tx, _] = await module.listOperations(address, { minHeight: 0 }); | ||
describe("getBalance", () => { | ||
it("returns a list regarding address parameter", async () => { | ||
it("should fetch balance", async () => { | ||
// When | ||
@@ -77,0 +77,0 @@ const result = await module.getBalance(address); |
@@ -23,4 +23,4 @@ "use strict"; | ||
expect(requestCount).toBeLessThanOrEqual(40); // should not exceed 50 requests | ||
}, 10000); | ||
}); | ||
}); | ||
//# sourceMappingURL=node.integ.test.js.map |
@@ -78,3 +78,3 @@ "use strict"; | ||
describe("getValidators", () => { | ||
it("returns expected result", async () => { | ||
it.skip("returns expected result", async () => { | ||
const result = await (0, sidecar_1.getValidators)(); | ||
@@ -81,0 +81,0 @@ expect(result).toEqual(expect.arrayContaining([ |
{ | ||
"name": "@ledgerhq/coin-polkadot", | ||
"version": "3.0.0", | ||
"version": "3.1.0-next.0", | ||
"description": "Ledger Polkadot Coin integration", | ||
@@ -122,11 +122,11 @@ "keywords": [ | ||
"rxjs": "^7.8.1", | ||
"@ledgerhq/coin-framework": "^2.4.0", | ||
"@ledgerhq/cryptoassets": "^13.13.0", | ||
"@ledgerhq/coin-framework": "^2.5.0-next.0", | ||
"@ledgerhq/cryptoassets": "^13.14.0-next.0", | ||
"@ledgerhq/devices": "8.4.4", | ||
"@ledgerhq/errors": "^6.19.1", | ||
"@ledgerhq/live-env": "^2.6.0", | ||
"@ledgerhq/live-network": "^2.0.5", | ||
"@ledgerhq/live-env": "^2.7.0-next.0", | ||
"@ledgerhq/live-network": "^2.0.6-next.0", | ||
"@ledgerhq/logs": "^6.12.0", | ||
"@ledgerhq/types-cryptoassets": "^7.20.0", | ||
"@ledgerhq/types-live": "^6.64.0" | ||
"@ledgerhq/types-cryptoassets": "^7.21.0-next.0", | ||
"@ledgerhq/types-live": "^6.65.0-next.0" | ||
}, | ||
@@ -148,4 +148,5 @@ "devDependencies": { | ||
"typescript": "^5.4.5", | ||
"jest-sonar": "0.2.16", | ||
"@ledgerhq/coin-tester": "^0.4.0", | ||
"@ledgerhq/hw-app-polkadot": "^6.32.0" | ||
"@ledgerhq/hw-app-polkadot": "^6.33.0-next.0" | ||
}, | ||
@@ -155,2 +156,3 @@ "scripts": { | ||
"build": "tsc --outDir lib --module commonjs --moduleResolution node10 && tsc -m ES6 --outDir lib-es", | ||
"coverage": "jest --coverage || true", | ||
"prewatch": "pnpm build", | ||
@@ -157,0 +159,0 @@ "watch": "tsc --watch", |
@@ -48,3 +48,3 @@ import type { Api } from "@ledgerhq/coin-framework/api/index"; | ||
describe("listOperations", () => { | ||
it("returns a list regarding address parameter", async () => { | ||
it.skip("returns a list regarding address parameter", async () => { | ||
// When | ||
@@ -62,3 +62,3 @@ const [tx, _] = await module.listOperations(address, { minHeight: 0 }); | ||
it("returns all operations", async () => { | ||
it.skip("returns all operations", async () => { | ||
// When | ||
@@ -86,3 +86,3 @@ const [tx, _] = await module.listOperations(address, { minHeight: 0 }); | ||
describe("getBalance", () => { | ||
it("returns a list regarding address parameter", async () => { | ||
it("should fetch balance", async () => { | ||
// When | ||
@@ -89,0 +89,0 @@ const result = await module.getBalance(address); |
@@ -21,3 +21,3 @@ import { ApiPromise, HttpProvider } from "@polkadot/api"; | ||
expect(requestCount).toBeLessThanOrEqual(40); // should not exceed 50 requests | ||
}, 10000); | ||
}); | ||
}); |
@@ -81,3 +81,3 @@ import BigNumber from "bignumber.js"; | ||
describe("getValidators", () => { | ||
it("returns expected result", async () => { | ||
it.skip("returns expected result", async () => { | ||
const result = await getValidators(); | ||
@@ -84,0 +84,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3111933
0.05%30684
0.04%17
6.25%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed