massalabs / massa-web3

Web3 libraries for Massa
MIT License
29 stars 74 forks source link

Style/smart contract file #590

Closed Ben-Rey closed 4 months ago

github-actions[bot] commented 4 months ago

Coverage report for experimental massa-web3

[!CAUTION] Test run failed

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements
94.74% (+0.19% πŸ”Ό)
54/57
🟒 Branches 100% 13/13
🟒 Functions 92.31% 12/13
🟒 Lines
94.55% (+0.21% πŸ”Ό)
52/55

Test suite run failed

Failed tests: 0/10. Failed suites: 4/7.
``` ● Test suite failed to run src/web3/ClientFactory.ts:70:9 - error TS2322: Type 'null' is not assignable to type 'Web3Account'. 70 let account: Web3Account = null ~~~~~~~ src/web3/ClientFactory.ts:109:9 - error TS2322: Type 'null' is not assignable to type 'Web3Account'. 109 let account: Web3Account = null ~~~~~~~ ``` --- ``` ● Test suite failed to run src/utils/Xbqcrypto.ts:76:19 - error TS2322: Type 'number | undefined' is not assignable to type 'number'. Type 'undefined' is not assignable to type 'number'. 76 return { value, bytes } ~~~~~ src/utils/Xbqcrypto.ts:72:3 72 bytes: number ~~~~~ The expected type comes from property 'bytes' which is declared here on type '{ value: number; bytes: number; }' ``` --- ``` ● Test suite failed to run src/experimental/crypto/cross-browser.ts:80:22 - error TS2769: No overload matches this call. The last overload gave the following error. Argument of type 'Promise' is not assignable to parameter of type 'WithImplicitCoercion | { [Symbol.toPrimitive](hint: "string"): string; }'. 80 return Buffer.from(crypto.subtle.exportKey('raw', derivedKey)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../node_modules/@types/node/buffer.d.ts:309:13 309 from( ~~~~~ 310 str: ~~~~~~~~~~~~~~~~~~~~ ... 315 encoding?: BufferEncoding, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 316 ): Buffer; ~~~~~~~~~~~~~~~~~~~~~~ The last overload is declared here. ``` --- ``` ● Test suite failed to run src/experimental/crypto/cross-browser.ts:80:22 - error TS2769: No overload matches this call. The last overload gave the following error. Argument of type 'Promise' is not assignable to parameter of type 'WithImplicitCoercion | { [Symbol.toPrimitive](hint: "string"): string; }'. 80 return Buffer.from(crypto.subtle.exportKey('raw', derivedKey)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../node_modules/@types/node/buffer.d.ts:309:13 309 from( ~~~~~ 310 str: ~~~~~~~~~~~~~~~~~~~~ ... 315 encoding?: BufferEncoding, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 316 ): Buffer; ~~~~~~~~~~~~~~~~~~~~~~ The last overload is declared here. ```

Report generated by πŸ§ͺjest coverage report action from b179bd75c0ea17213bcca4c03b37b6b32040610b

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud