-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: migrate from Jest to Vitest #1310
Conversation
…th test validation
…/feat/implement-vitest
…s/fuels-ts into db/feat/implement-vitest
…/feat/implement-vitest
…into db/feat/implement-vitest
The coverage report looks strange at the moment as we need to run it against |
Total:
|
Since this PR was last approved pre |
* chore: updating code owners (#1496) * docs: purge hardcoded snippets on 'using typegen' page (#1403) * chore: remove method that's same as base method (#1445) * chore: implement RC workflow (#1497) * Revert "feat: add `Predicate.getTransferTxId` helper (#1467)" * chore: fix rc release string replace (#1529) * docs: Update some hyperlinks to reference the new documentation hub (#1520) * chore: improve rc release message (#1559) * feat: GraphQL subscriptions (#1374) * chore: pin `graphql-request` to `v5` (#1567) * chore: upgrade `tsx` (#1574) * feat: migrate from Jest to Vitest (#1310) * chore: fix temp test workflow (#1579) * chore: update required node engine in `create-fuels` (#1582) * chore: add node version test matrix (#1575) * chore: fix broken rc message (#1580) * chore: update nodejs to v20 (#1544) * feat: accepting addresses as `string` (#1583) * chore: properly format the PR coverage report comment (#1586) * fix: flaky test (#1590) * docs: update `deposit-and-withdraw` page (#1591) * feat: retry mechanism (#1474) * feat: replaced `semver` dependency with custom implementation (#1594) * feat: replace `elliptic` with `@noble/curves` (#1601) * chore: fix CI failing due to missing tag in test (#1614) * feat: improve ABI Coders `decode` validation (#1426) * fix: do not generate a coverage diff without coverage artifact (#1629) * chore: pinpoint vitest to 1.0.4 (#1637) * chore: remove `ethers` dependency from `utils` (#1640) * fix: `getOperation` for `Transfer Asset` (#1619) * fix: remove external font dependencies (#1642) * fix: generate RC PR comment on `pull_request` event only (#1648) * fix: fix failing `rc` comment (#1657) * chore: add missing test group (#1658) * feat: implement browser compatibility testing (#1630) * chore: fix string replace in `rc` ci (#1659) * chore: adding extra reporters (#1661) * chore: manually trigger `rc` CI (#1660) * feat: use `submitAndAwait` graphql endpoint (#1615) * fix: flaky retry test (#1654) * feat: create a wallet without a provider (#1566) * chore!: Share single chainConfig and review node-related utilities (#1602) * chore: use new temporary coverage artifact (#1676) * fix: internalizing `findBinPath` utility (#1679)
Background
This PR focuses on migrating our current features around node environment testing and implements the following:
Although the code makes some reference to browser testing, the full scope of that work is in #1431. Closes #813.
Benchmarks
Vitest node benchmark: 23.62s
RUN v0.34.3 /Users/daniel/Documents/Development/Fuel/ts Coverage enabled with istanbul
stdout | packages/fuel-gauge/src/e2e-script.test.ts > Live Script Test > can use script against live Fuel Node
Skipping live Fuel Node test
✓ packages/errors/src/test-utils/safeExec.test.ts (2)
✓ packages/merkle/src/binary/binaryMerkleTree.test.ts (2)
✓ packages/crypto/src/shared/scrypt.test.ts (1)
✓ packages/crypto/src/shared/scrypt.test.ts (1)
✓ packages/crypto/src/shared/scrypt.test.ts (1)
✓ packages/abi-typegen/src/utils/shouldSkipType.test.ts (2)
✓ packages/abi-typegen/src/utils/shouldSkipType.test.ts (2)
✓ packages/abi-typegen/src/utils/supportedTypes.test.ts (1)
✓ packages/crypto/src/shared/scrypt.test.ts (1)
✓ packages/crypto/src/shared/scrypt.test.ts (1)
✓ packages/errors/src/test-utils/expect-to-throw-fuel-error.test.ts (7)
✓ packages/errors/src/test-utils/expect-to-throw-fuel-error.test.ts (7)
✓ packages/abi-typegen/src/utils/supportedTypes.test.ts (1)
✓ packages/abi-typegen/src/utils/shouldSkipType.test.ts (2)
✓ packages/abi-typegen/src/utils/parseTypes.test.ts (1)
✓ packages/abi-typegen/src/utils/parseTypes.test.ts (1)
✓ packages/abi-typegen/src/utils/parseTypes.test.ts (1)
✓ packages/abi-typegen/src/utils/parseTypes.test.ts (1)
✓ packages/abi-typegen/src/utils/parseTypes.test.ts (1)
✓ packages/abi-typegen/src/utils/parseTypes.test.ts (1)
✓ packages/abi-typegen/src/utils/parseTypes.test.ts (1)
✓ packages/abi-typegen/src/utils/parseTypes.test.ts (1)
✓ packages/abi-typegen/src/utils/parseTypes.test.ts (1)
✓ packages/abi-typegen/src/utils/validateBinFile.test.ts (3)
✓ packages/abi-typegen/src/utils/shouldSkipType.test.ts (2)
✓ packages/abi-typegen/src/utils/validateBinFile.test.ts (3)
✓ packages/abi-typegen/src/utils/validateBinFile.test.ts (3)
✓ packages/abi-typegen/src/utils/validateBinFile.test.ts (3)
✓ packages/abi-typegen/src/utils/validateBinFile.test.ts (3)
✓ packages/abi-typegen/src/utils/validateBinFile.test.ts (3)
✓ packages/abi-typegen/src/utils/validateBinFile.test.ts (3)
✓ packages/abi-typegen/src/utils/validateBinFile.test.ts (3)
✓ packages/abi-typegen/src/utils/validateBinFile.test.ts (3)
✓ packages/abi-typegen/src/utils/validateBinFile.test.ts (3)
✓ packages/abi-typegen/src/utils/validateBinFile.test.ts (3)
✓ packages/abi-typegen/src/utils/validateBinFile.test.ts (3)
✓ packages/abi-typegen/src/utils/shouldSkipType.test.ts (2)
✓ packages/abi-typegen/src/utils/shouldSkipType.test.ts (2)
✓ packages/crypto/src/shared/keccak256.test.ts (1)
✓ packages/errors/src/test-utils/expect-to-throw-fuel-error.test.ts (7)
✓ packages/crypto/src/shared/keccak256.test.ts (1)
✓ packages/errors/src/test-utils/expect-to-throw-fuel-error.test.ts (7)
✓ packages/crypto/src/shared/keccak256.test.ts (1)
✓ packages/errors/src/test-utils/expect-to-throw-fuel-error.test.ts (7)
✓ packages/crypto/src/shared/keccak256.test.ts (1)
✓ packages/errors/src/test-utils/expect-to-throw-fuel-error.test.ts (7)
✓ packages/crypto/src/shared/keccak256.test.ts (1)
✓ packages/errors/src/test-utils/expect-to-throw-fuel-error.test.ts (7)
✓ packages/crypto/src/shared/keccak256.test.ts (1)
✓ packages/errors/src/test-utils/expect-to-throw-fuel-error.test.ts (7)
✓ packages/crypto/src/shared/keccak256.test.ts (1)
✓ packages/errors/src/test-utils/expect-to-throw-fuel-error.test.ts (7)
✓ packages/abi-typegen/src/utils/shouldSkipType.test.ts (2)
✓ packages/abi-typegen/src/utils/shouldSkipType.test.ts (2)
✓ packages/abi-typegen/src/utils/shouldSkipType.test.ts (2)
✓ packages/abi-typegen/src/utils/supportedTypes.test.ts (1)
✓ packages/fuel-gauge/src/predicate/predicate-configurables.test.ts (8) 571ms
✓ packages/predicate/test/features/predicate-transactions.test.ts (2)
✓ packages/transactions/src/coders/output.test.ts (5)
✓ packages/fuel-gauge/src/predicate/predicate-with-contract.test.ts (2)
↓ packages/fuel-gauge/src/predicate/predicate-with-script.test.ts (1) [skipped]
✓ packages/fuel-gauge/src/predicate/predicate-with-contract.test.ts (2)
↓ packages/fuel-gauge/src/predicate/predicate-with-script.test.ts (1) [skipped]
✓ packages/fuel-gauge/src/predicate/predicate-with-contract.test.ts (2)
↓ packages/fuel-gauge/src/predicate/predicate-with-script.test.ts (1) [skipped]
✓ packages/fuel-gauge/src/predicate/predicate-with-contract.test.ts (2)
↓ packages/fuel-gauge/src/predicate/predicate-with-script.test.ts (1) [skipped]
✓ packages/fuel-gauge/src/predicate/predicate-with-contract.test.ts (2)
↓ packages/fuel-gauge/src/predicate/predicate-with-script.test.ts (1) [skipped]
✓ packages/fuel-gauge/src/predicate/predicate-with-contract.test.ts (2)
↓ packages/fuel-gauge/src/predicate/predicate-with-script.test.ts (1) [skipped]
✓ packages/fuel-gauge/src/predicate/predicate-configurables.test.ts (8) 571ms
✓ packages/fuel-gauge/src/predicate/predicate-with-contract.test.ts (2)
✓ packages/errors/src/test-utils/safeExec.test.ts (2)
✓ packages/merkle/src/binary/binaryMerkleTree.test.ts (2)
✓ packages/errors/src/test-utils/safeExec.test.ts (2)
✓ packages/merkle/src/binary/binaryMerkleTree.test.ts (2)
✓ packages/errors/src/test-utils/safeExec.test.ts (2)
✓ packages/merkle/src/binary/binaryMerkleTree.test.ts (2)
✓ packages/errors/src/test-utils/safeExec.test.ts (2)
✓ packages/merkle/src/binary/binaryMerkleTree.test.ts (2)
✓ packages/errors/src/test-utils/safeExec.test.ts (2)
✓ packages/merkle/src/binary/binaryMerkleTree.test.ts (2)
✓ packages/errors/src/test-utils/expect-to-throw-fuel-error.test.ts (7)
✓ packages/errors/src/test-utils/safeExec.test.ts (2)
✓ packages/merkle/src/binary/binaryMerkleTree.test.ts (2)
✓ packages/merkle/src/sum/sumMerkleTree.test.ts (2)
✓ packages/merkle/src/sum/sumMerkleTree.test.ts (2)
✓ packages/merkle/src/sum/sumMerkleTree.test.ts (2)
✓ packages/merkle/src/sum/sumMerkleTree.test.ts (2)
✓ packages/merkle/src/sum/sumMerkleTree.test.ts (2)
✓ packages/merkle/src/sum/sumMerkleTree.test.ts (2)
✓ packages/transactions/src/coders/input.test.ts (6)
✓ packages/transactions/src/coders/transaction.test.ts (6)
✓ packages/transactions/src/coders/transaction.test.ts (6)
✓ packages/transactions/src/coders/transaction.test.ts (6)
✓ packages/transactions/src/coders/transaction.test.ts (6)
✓ packages/transactions/src/coders/utxo-id.test.ts (2)
✓ packages/transactions/src/coders/utxo-id.test.ts (2)
✓ packages/transactions/src/coders/utxo-id.test.ts (2)
✓ packages/transactions/src/coders/transaction.test.ts (6)
✓ packages/transactions/src/coders/transaction.test.ts (6)
✓ packages/transactions/src/coders/transaction.test.ts (6)
✓ packages/transactions/src/coders/transaction.test.ts (6)
✓ packages/transactions/src/coders/receipt.test.ts (12)
✓ packages/transactions/src/coders/receipt.test.ts (12)
✓ packages/fuel-gauge/src/coverage-contract.test.ts (52) 4531ms
✓ packages/fuel-gauge/src/advanced-logging.test.ts (4) 1445ms
✓ packages/fuel-gauge/src/auth-testing.test.ts (3) 1391ms
✓ packages/fuel-gauge/src/call-test-contract.test.ts (22) 3910ms
✓ packages/fuel-gauge/src/configurable-contract.test.ts (12) 1396ms
✓ packages/fuel-gauge/src/contract.test.ts (34) 3172ms
✓ packages/fuel-gauge/src/revert-error.test.ts (7) 3818ms
✓ packages/fuel-gauge/src/token-test-contract.test.ts (4) 2489ms
✓ packages/fuel-gauge/src/raw-slice.test.ts (5) 1317ms
✓ packages/fuel-gauge/src/bytes.test.ts (6) 3509ms
✓ packages/fuel-gauge/src/doc-examples.test.ts (16) 1204ms
✓ packages/fuel-gauge/src/vectors.test.ts (28) 397ms
✓ packages/fuel-gauge/src/contract-factory.test.ts (7) 471ms
✓ packages/fuel-gauge/src/multi-token-contract.test.ts (2) 1566ms
✓ packages/fuel-gauge/src/vector-types.test.ts (3)
✓ apps/demo-typegen/src/demo.test.ts (4) 2238ms
✓ packages/fuel-gauge/src/storage-test-contract.test.ts (2)
✓ packages/fuel-gauge/src/predicate-conditional-inputs.test.ts (2)
✓ packages/fuel-gauge/src/script-main-args.test.ts (4)
✓ packages/fuel-gauge/src/std-lib-string.test.ts (4) 1222ms
✓ packages/fuel-gauge/src/script-with-vectors.test.ts (4)
✓ packages/crypto/test/aes-ctr.test.ts (3)
✓ packages/fuel-gauge/src/transaction-summary.test.ts (3)
✓ packages/fuel-gauge/src/script-with-configurable.test.ts (4)
✓ packages/fuel-gauge/src/transaction-response.test.ts (3)
✓ packages/providers/test/provider.test.ts (30)
✓ packages/fuel-gauge/src/generic-types-contract.test.ts (1)
✓ packages/providers/src/transaction-summary/date.test.ts (2)
✓ packages/fuel-gauge/src/edge-cases.test.ts (1)
✓ packages/providers/src/transaction-summary/operations.test.ts (37)
✓ packages/mnemonic/src/mnemonic.test.ts (139)
✓ packages/providers/test/memory-cache.test.ts (14)
✓ packages/hdwallet/src/hdwallet.test.ts (33)
✓ packages/fuel-gauge/src/payable-annotation.test.ts (2)
✓ packages/providers/src/transaction-summary/receipt.test.ts (2)
✓ packages/address/src/address.test.ts (45)
✓ packages/errors/src/fuel-error.test.ts (5)
✓ packages/providers/src/utils/receipts.test.ts (15)
✓ packages/abi-coder/test/interface.test.ts (108)
✓ packages/math/src/bn.test.ts (16)
✓ packages/abi-typegen/src/runTypegen.test.ts (6)
✓ packages/abi-typegen/src/cli.test.ts (6)
✓ packages/providers/src/transaction-summary/assemble-transaction-summary.test.ts (4)
✓ packages/abi-typegen/src/AbiTypeGen.test.ts (4)
✓ packages/providers/src/transaction-request/transaction-request.test.ts (2)
✓ internal/check-tests/src/node.test.ts (1)
✓ packages/mnemonic/src/utils.test.ts (3)
✓ packages/versions/src/cli.test.ts (3)
✓ packages/versions/scripts/rewriteVersions.test.ts (5)
✓ packages/providers/src/utils/fee.test.ts (10)
✓ packages/hasher/src/hasher.test.ts (3)
✓ packages/abi-coder/src/utilities.test.ts (9)
✓ packages/utils/src/test-util.test.ts (1)
✓ packages/providers/src/utils/block-explorer.test.ts (4)
✓ packages/providers/src/transaction-summary/output.test.ts (5)
✓ packages/versions/src/lib/getUserVersions.test.ts (2)
✓ packages/fuels/src/cli.test.ts (1)
✓ packages/versions/src/lib/getSupportedVersions.test.ts (1)
✓ packages/providers/src/utils/json.test.ts (3)
✓ internal/check-tests/src/all.test.ts (1)
✓ packages/utils/src/index.test.ts (1)
✓ packages/providers/src/transaction-summary/input.test.ts (10)
✓ packages/providers/src/utils/time.test.ts (2)
✓ packages/crypto/test/bufferFromString.test.ts (3)
✓ packages/crypto/test/encryptJsonWalletData.test.ts (1)
✓ packages/errors/src/test-utils.test.ts (1)
✓ packages/versions/src/lib/checkFuelCoreVersionCompatibility.test.ts (1)
✓ packages/versions/src/lib/colorizeUserVersion.test.ts (1)
✓ packages/math/src/functional.test.ts (5)
✓ packages/versions/src/lib/compareUserVersions.test.ts (3)
✓ packages/versions/src/index.test.ts (1)
✓ packages/fuel-gauge/src/e2e-script.test.ts (1)
✓ packages/crypto/test/stringFromBuffer.test.ts (3)
✓ packages/providers/src/transaction-summary/status.test.ts (5)
✓ packages/fuels/src/index.test.ts (1)
✓ packages/abi-typegen/src/index.test.ts (1)
✓ packages/wallet/src/keystore-wallet.test.ts (5)
✓ packages/signer/src/signer.test.ts (7)
✓ packages/wallet/src/account.test.ts (15)
✓ packages/wallet/src/utils.test.ts (2)
✓ packages/program/src/contract.test.ts (3)
✓ packages/script/src/script.test.ts (4)
✓ packages/wordlists/src/wordlists.test.ts (1)
✓ packages/abi-coder/src/coders/array.test.ts (8)
✓ packages/wallet/src/wallet-unlocked.test.ts (16) 319ms
✓ packages/wallet/src/wallet.test.ts (10) 378ms
✓ packages/wallet/src/transfer.test.ts (8) 725ms
✓ packages/abi-coder/src/coders/b256.test.ts (10)
✓ packages/wallet-manager/src/wallet-manager.test.ts (18) 2166ms
✓ packages/abi-coder/src/coders/b512.test.ts (10)
✓ packages/abi-coder/src/coders/boolean.test.ts (13)
✓ packages/abi-coder/src/coders/byte.test.ts (4)
✓ packages/abi-coder/src/coders/enum.test.ts (10)
✓ packages/abi-coder/src/coders/number.test.ts (14)
✓ packages/abi-coder/src/coders/option.test.ts (4)
✓ packages/abi-coder/src/coders/raw-slice.test.ts (3)
✓ packages/abi-coder/src/coders/string.test.ts (7)
✓ packages/abi-coder/src/coders/stdString.test.ts (6)
✓ packages/abi-coder/src/coders/u64.test.ts (11)
✓ packages/abi-coder/src/coders/struct.test.ts (10)
✓ packages/abi-coder/src/coders/tuple.test.ts (8)
✓ packages/abi-coder/src/coders/vec.test.ts (3)
✓ packages/abi-typegen/src/templates/renderHbsTemplate.test.ts (1)
✓ packages/abi-typegen/src/abi/Abi.test.ts (3)
✓ packages/abi-typegen/src/utils/assembleContracts.test.ts (2)
✓ packages/abi-typegen/src/utils/collectBinFilePaths.test.ts (3)
✓ packages/abi-typegen/src/utils/collectStorageSlotsFilePaths.test.ts (1)
✓ packages/abi-typegen/src/utils/extractStructName.test.ts (4)
✓ packages/abi-typegen/src/utils/findType.test.ts (2)
✓ packages/abi-typegen/src/utils/makeConfigurable.test.ts (1)
✓ packages/abi-typegen/src/utils/assemblePredicates.test.ts (2)
✓ packages/abi-typegen/src/utils/assembleScripts.test.ts (2)
✓ packages/abi-typegen/src/utils/makeFunction.test.ts (1)
✓ packages/abi-typegen/src/utils/makeType.test.ts (2)
✓ packages/abi-typegen/src/utils/parseConfigurables.test.ts (1)
✓ packages/abi-typegen/src/utils/parseFunctions.test.ts (1)
✓ packages/abi-typegen/src/utils/parseTypeArguments.test.ts (3)
✓ packages/abi-typegen/src/utils/parseTypes.test.ts (1)
✓ packages/abi-typegen/src/utils/validateBinFile.test.ts (3)
✓ packages/abi-typegen/src/utils/shouldSkipType.test.ts (2)
✓ packages/abi-typegen/src/utils/supportedTypes.test.ts (1)
✓ packages/crypto/src/shared/keccak256.test.ts (1)
✓ packages/errors/src/test-utils/expect-to-throw-fuel-error.test.ts (7)
✓ packages/crypto/src/shared/scrypt.test.ts (1)
✓ packages/errors/src/test-utils/safeExec.test.ts (2)
✓ packages/merkle/src/binary/binaryMerkleTree.test.ts (2)
✓ packages/fuel-gauge/src/predicate/predicate-estimations.test.ts (1)
✓ packages/merkle/src/sparse/sparseMerkleTree.test.ts (2)
✓ packages/merkle/src/sum/sumMerkleTree.test.ts (2)
✓ packages/fuel-gauge/src/predicate/predicate-configurables.test.ts (8) 571ms
✓ packages/fuel-gauge/src/predicate/predicate-with-contract.test.ts (2)
↓ packages/fuel-gauge/src/predicate/predicate-with-script.test.ts (1) [skipped]
✓ packages/fuel-gauge/src/predicate/predicate-evaluations.test.ts (2)
✓ packages/fuel-gauge/src/predicate/predicate-invalidations.test.ts (2)
✓ packages/fuel-gauge/src/predicate/predicate-arguments.test.ts (11) 821ms
✓ packages/predicate/test/features/predicate-functions.test.ts (3)
✓ packages/transactions/src/coders/byte-array.test.ts (2)
✓ packages/predicate/test/features/predicate-transactions.test.ts (2)
✓ packages/transactions/src/coders/output.test.ts (5)
✓ packages/transactions/src/coders/input.test.ts (6)
✓ packages/transactions/src/coders/receipt.test.ts (12)
✓ packages/transactions/src/coders/storage-slot.test.ts (1)
✓ packages/transactions/src/coders/tx-pointer.test.ts (2)
✓ packages/transactions/src/coders/transaction.test.ts (6)
✓ packages/transactions/src/coders/utxo-id.test.ts (2)
✓ packages/transactions/src/coders/witness.test.ts (2)
✓ packages/utils/src/utils/chunkAndPadBytes.test.ts (1)
✓ packages/utils/src/utils/concatBytes.test.ts (2)
✓ packages/utils/src/test-utils/getForcProject.test.ts (1)
✓ packages/utils/src/utils/normalizeString.test.ts (2)
✓ packages/wallet-manager/src/storages/memory-storage.test.ts (1)
✓ packages/wallet/src/test-utils/launchNode.test.ts (3) 1218ms
✓ packages/wallet-manager/src/vaults/privatekey-vault.test.ts (5)
✓ packages/wallet-manager/src/vaults/mnemonic-vault.test.ts (5)
✓ apps/docs-snippets/src/guide/contracts/call-parameters.test.ts (3)
✓ apps/docs-snippets/src/guide/contracts/calls-with-different-wallets.test.ts (1)
✓ apps/docs-snippets/src/guide/contracts/configurable-constants.test.ts (3)
✓ apps/docs-snippets/src/guide/contracts/contract-balance.test.ts (1) 419ms
✓ apps/docs-snippets/src/guide/contracts/cost-estimation.test.ts (2)
✓ apps/docs-snippets/src/guide/contracts/deploying-contracts.test.ts (1)
✓ apps/docs-snippets/src/guide/contracts/index.test.ts (1)
✓ apps/docs-snippets/src/guide/contracts/inter-contract-calls.test.ts (1)
✓ apps/docs-snippets/src/guide/contracts/logs.test.ts (1)
✓ apps/docs-snippets/src/guide/contracts/managing-deployed-contracts.test.ts (2)
✓ apps/docs-snippets/src/guide/contracts/simulate-transactions.test.ts (4) 488ms
✓ apps/docs-snippets/src/guide/contracts/transaction-parameters.test.ts (2)
✓ apps/docs-snippets/src/guide/contracts/multicalls.test.ts (3)
✓ apps/docs-snippets/src/guide/predicates/predicate-with-configurable.test.ts (2)
✓ apps/docs-snippets/src/guide/predicates/index.test.ts (1)
✓ apps/docs-snippets/src/guide/predicates/send-and-spend-funds-from-predicates.test.ts (3) 1218ms
✓ apps/docs-snippets/src/guide/scripts/script-custom-transaction.test.ts (1)
✓ apps/docs-snippets/src/guide/scripts/script-with-configurable.test.ts (1)
✓ apps/docs-snippets/src/guide/testing/tweaking-the-blockchain.test.ts (1)
✓ apps/docs-snippets/src/guide/wallet-manager/getting-started-with-wallet-manager.test.ts (1)
✓ apps/docs-snippets/src/guide/types/address.test.ts (6)
✓ apps/docs-snippets/src/guide/types/arrays.test.ts (4)
✓ apps/docs-snippets/src/guide/wallet-manager/locking-and-unlocking-wallet-manager.test.ts (1)
✓ apps/docs-snippets/src/guide/types/bits256.test.ts (3)
✓ apps/docs-snippets/src/guide/types/bech32.test.ts (1)
✓ apps/docs-snippets/src/guide/types/bits512.test.ts (1)
✓ apps/docs-snippets/src/guide/types/bytes32.test.ts (1)
✓ apps/docs-snippets/src/guide/types/bytes.test.ts (2)
✓ apps/docs-snippets/src/guide/types/conversion.test.ts (4)
✓ apps/docs-snippets/src/guide/types/enums.test.ts (3)
✓ apps/docs-snippets/src/guide/types/evm-address.test.ts (4)
✓ apps/docs-snippets/src/guide/types/struct.test.ts (1)
✓ apps/docs-snippets/src/guide/types/options.test.ts (2)
✓ apps/docs-snippets/src/guide/types/raw-slice.test.ts (2)
✓ apps/docs-snippets/src/guide/types/string.test.ts (3)
✓ apps/docs-snippets/src/guide/types/std-string.test.ts (2)
✓ apps/docs-snippets/src/guide/types/tuples.test.ts (1)
✓ apps/docs-snippets/src/guide/types/vector.test.ts (1)
✓ apps/docs-snippets/src/guide/wallets/encrypting-and-decrypting-json-wallets.test.ts (2)
✓ packages/abi-typegen/src/abi/functions/Function.test.ts (3)
✓ apps/docs-snippets/src/guide/wallets/transferring-assets.test.ts (2)
✓ packages/abi-typegen/src/abi/configurable/Configurable.test.ts (1)
✓ packages/abi-typegen/src/templates/predicate/factory.test.ts (3)
✓ packages/abi-typegen/src/templates/common/common.test.ts (1)
✓ packages/abi-typegen/src/templates/contract/bytecode.test.ts (1)
✓ packages/abi-typegen/src/templates/common/index.test.ts (1)
✓ packages/abi-typegen/src/abi/types/ArrayType.test.ts (3)
✓ packages/abi-typegen/src/templates/contract/factory.test.ts (1)
✓ packages/abi-typegen/src/abi/types/B256Type.test.ts (1)
✓ packages/abi-typegen/src/templates/contract/dts.test.ts (6)
✓ packages/abi-typegen/src/abi/types/B512Type.test.ts (1)
✓ packages/abi-typegen/src/abi/types/BoolType.test.ts (1)
✓ packages/abi-typegen/src/abi/types/BytesType.test.ts (1)
✓ packages/abi-typegen/src/abi/types/EnumType.test.ts (7)
✓ packages/abi-typegen/src/abi/types/EvmAddressType.test.ts (1)
✓ packages/abi-typegen/src/abi/types/GenericType.test.ts (1)
✓ packages/abi-typegen/src/abi/types/OptionType.test.ts (2)
✓ packages/abi-typegen/src/abi/types/RawUntypedPtr.test.ts (1)
✓ packages/abi-typegen/src/abi/types/RawUntypedSlice.test.ts (1)
✓ packages/abi-typegen/src/abi/types/StdStringType.test.ts (1)
✓ packages/abi-typegen/src/abi/types/StrType.test.ts (1)
✓ packages/abi-typegen/src/abi/types/StructType.test.ts (1)
✓ packages/abi-typegen/src/abi/types/U16Type.test.ts (1)
✓ packages/abi-typegen/src/abi/types/TupleType.test.ts (1)
✓ packages/abi-typegen/src/abi/types/U32Type.test.ts (1)
✓ packages/abi-typegen/src/abi/types/U64Type.test.ts (1)
✓ packages/abi-typegen/src/abi/types/U8Type.test.ts (1)
✓ packages/abi-typegen/src/abi/types/VectorType.test.ts (1)
✓ packages/abi-typegen/src/templates/utils/formatConfigurables.test.ts (1)
✓ packages/abi-typegen/src/templates/utils/formatEnums.test.ts (1)
✓ packages/abi-typegen/src/templates/script/factory.test.ts (3)
✓ packages/abi-typegen/src/templates/utils/formatImports.test.ts (4)
✓ packages/abi-typegen/src/templates/utils/formatStructs.test.ts (1)
Test Files 226 passed | 1 skipped (227)
Tests 1274 passed | 18 skipped (1292)
Start at 10:03:02
Duration 23.62s (transform 5.35s, setup 92.35s, collect 61.80s, tests 53.41s, environment 22ms, prepare 16.51s)
% Coverage report from istanbul
---------------------------------------------------|---------|----------|---------|---------|----------------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
---------------------------------------------------|---------|----------|---------|---------|----------------------------------------
All files | 81.69 | 67.48 | 75.45 | 81.9 |
apps/demo-typegen/src/generated-types/factories | 90 | 0 | 66.66 | 90 |
DemoContractAbi__factory.ts | 90 | 0 | 66.66 | 90 | 56
apps/docs-snippets/projects | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
apps/docs-snippets/src | 100 | 75 | 100 | 100 |
utils.ts | 100 | 75 | 100 | 100 | 21
internal/check-tests/src | 81.81 | 66.66 | 100 | 80 |
index.ts | 81.81 | 66.66 | 100 | 80 | 10,14
packages/abi-coder/src | 87.61 | 84.93 | 84.81 | 88.31 |
abi-coder.ts | 92.85 | 90 | 87.5 | 92.59 | 52,96,109,143
constants.ts | 95.83 | 100 | 0 | 95.83 | 24
function-fragment.ts | 75.32 | 72.72 | 81.81 | 78.12 | 96,110-111,146-185
interface.ts | 61.11 | 50 | 76.47 | 60.6 | 61-65,77,86-104
resolved-abi-type.ts | 98.66 | 100 | 94.73 | 98.41 | 20
utilities.ts | 98.18 | 95.23 | 91.66 | 98.11 | 153
packages/abi-coder/src/coders | 100 | 100 | 100 | 100 |
abstract-coder.ts | 100 | 100 | 100 | 100 |
array.ts | 100 | 100 | 100 | 100 |
b256.ts | 100 | 100 | 100 | 100 |
b512.ts | 100 | 100 | 100 | 100 |
boolean.ts | 100 | 100 | 100 | 100 |
byte.ts | 100 | 100 | 100 | 100 |
enum.ts | 100 | 100 | 100 | 100 |
number.ts | 100 | 100 | 100 | 100 |
option.ts | 100 | 100 | 100 | 100 |
raw-slice.ts | 100 | 100 | 100 | 100 |
stdString.ts | 100 | 100 | 100 | 100 |
string.ts | 100 | 100 | 100 | 100 |
struct.ts | 100 | 100 | 100 | 100 |
tuple.ts | 100 | 100 | 100 | 100 |
u64.ts | 100 | 100 | 100 | 100 |
vec.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src | 100 | 100 | 100 | 100 |
AbiTypeGen.ts | 100 | 100 | 100 | 100 |
cli.ts | 100 | 100 | 100 | 100 |
runTypegen.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/abi | 100 | 100 | 100 | 100 |
Abi.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/abi/configurable | 100 | 100 | 100 | 100 |
Configurable.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/abi/functions | 100 | 100 | 100 | 100 |
Function.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/abi/types | 100 | 100 | 100 | 100 |
AType.ts | 100 | 100 | 100 | 100 |
ArrayType.ts | 100 | 100 | 100 | 100 |
B256Type.ts | 100 | 100 | 100 | 100 |
B512Type.ts | 100 | 100 | 100 | 100 |
BoolType.ts | 100 | 100 | 100 | 100 |
BytesType.ts | 100 | 100 | 100 | 100 |
EnumType.ts | 100 | 100 | 100 | 100 |
EvmAddressType.ts | 100 | 100 | 100 | 100 |
GenericType.ts | 100 | 100 | 100 | 100 |
OptionType.ts | 100 | 100 | 100 | 100 |
RawUntypedPtr.ts | 100 | 100 | 100 | 100 |
RawUntypedSlice.ts | 100 | 100 | 100 | 100 |
StdStringType.ts | 100 | 100 | 100 | 100 |
StrType.ts | 100 | 100 | 100 | 100 |
StructType.ts | 100 | 100 | 100 | 100 |
TupleType.ts | 100 | 100 | 100 | 100 |
U16Type.ts | 100 | 100 | 100 | 100 |
U32Type.ts | 100 | 100 | 100 | 100 |
U64Type.ts | 100 | 100 | 100 | 100 |
U8Type.ts | 100 | 100 | 100 | 100 |
VectorType.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/templates | 100 | 100 | 100 | 100 |
renderHbsTemplate.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/templates/common | 100 | 100 | 100 | 100 |
common.ts | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/templates/contract | 100 | 100 | 100 | 100 |
bytecode.ts | 100 | 100 | 100 | 100 |
dts.ts | 100 | 100 | 100 | 100 |
factory.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/templates/predicate | 100 | 100 | 100 | 100 |
factory.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/templates/script | 100 | 100 | 100 | 100 |
factory.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/templates/utils | 100 | 100 | 100 | 100 |
formatConfigurables.ts | 100 | 100 | 100 | 100 |
formatEnums.ts | 100 | 100 | 100 | 100 |
formatImports.ts | 100 | 100 | 100 | 100 |
formatStructs.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/types/enums | 100 | 100 | 100 | 100 |
ProgramTypeEnum.ts | 100 | 100 | 100 | 100 |
TargetEnum.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/utils | 100 | 100 | 100 | 100 |
assembleContracts.ts | 100 | 100 | 100 | 100 |
assemblePredicates.ts | 100 | 100 | 100 | 100 |
assembleScripts.ts | 100 | 100 | 100 | 100 |
collectBinFilePaths.ts | 100 | 100 | 100 | 100 |
collectStorageSlotsFilePaths.ts | 100 | 100 | 100 | 100 |
extractStructName.ts | 100 | 100 | 100 | 100 |
findType.ts | 100 | 100 | 100 | 100 |
makeConfigurable.ts | 100 | 100 | 100 | 100 |
makeFunction.ts | 100 | 100 | 100 | 100 |
makeType.ts | 100 | 100 | 100 | 100 |
parseConfigurables.ts | 100 | 100 | 100 | 100 |
parseFunctions.ts | 100 | 100 | 100 | 100 |
parseTypeArguments.ts | 100 | 100 | 100 | 100 |
parseTypes.ts | 100 | 100 | 100 | 100 |
shouldSkipAbiType.ts | 100 | 100 | 100 | 100 |
supportedTypes.ts | 100 | 100 | 100 | 100 |
validateBinFile.ts | 100 | 100 | 100 | 100 |
packages/address/src | 86.56 | 76.19 | 86.66 | 86.36 |
address.ts | 87.87 | 72.22 | 82.35 | 87.87 | 37,77,167-176
utils.ts | 85.29 | 79.16 | 92.3 | 84.84 | 129-137
packages/crypto/src | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/crypto/src/node | 100 | 100 | 100 | 100 |
aes-ctr.ts | 100 | 100 | 100 | 100 |
bufferFromString.ts | 100 | 100 | 100 | 100 |
encryptJsonWalletData.ts | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
randomBytes.ts | 100 | 100 | 100 | 100 |
stringFromBuffer.ts | 100 | 100 | 100 | 100 |
packages/crypto/src/shared | 100 | 100 | 100 | 100 |
keccak256.ts | 100 | 100 | 100 | 100 |
scrypt.ts | 100 | 100 | 100 | 100 |
packages/errors/src | 100 | 100 | 100 | 100 |
error-codes.ts | 100 | 100 | 100 | 100 |
fuel-error.ts | 100 | 100 | 100 | 100 |
packages/errors/src/test-utils | 100 | 100 | 100 | 100 |
expect-to-throw-fuel-error.ts | 100 | 100 | 100 | 100 |
safeExec.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/src | 100 | 100 | 100 | 100 |
utils.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/src/predicate/utils/predicate | 95 | 57.14 | 100 | 100 |
assertBalance.ts | 100 | 100 | 100 | 100 |
assertBalances.ts | 100 | 100 | 100 | 100 |
fundPredicate.ts | 100 | 100 | 100 | 100 |
setupContract.ts | 90 | 57.14 | 100 | 100 | 19-26
setupWallets.ts | 100 | 100 | 100 | 100 |
packages/fuels/src | 100 | 100 | 100 | 100 |
cli.ts | 100 | 100 | 100 | 100 |
packages/hasher/src | 60.46 | 30 | 100 | 60.46 |
hasher.ts | 60.46 | 30 | 100 | 60.46 | 64-82,92-106
packages/hdwallet/src | 94.5 | 84.37 | 100 | 94.44 |
hdwallet.ts | 94.5 | 84.37 | 100 | 94.44 | 53,97,131,197,242
packages/math/src | 89.32 | 78.78 | 82.05 | 89.21 |
bn.ts | 86.74 | 86.53 | 78.78 | 86.58 | 74,88,95,169-185,224,241-243
configs.ts | 100 | 100 | 100 | 100 |
decimal.ts | 100 | 50 | 100 | 100 | 5-7,20
functional.ts | 100 | 100 | 100 | 100 |
packages/merkle/src/binary | 96.87 | 83.33 | 100 | 96.66 |
binaryMerkleTree.ts | 96.87 | 83.33 | 100 | 96.66 | 73,113
packages/merkle/src/binary/types | 100 | 100 | 100 | 100 |
node.ts | 100 | 100 | 100 | 100 |
packages/merkle/src/common | 100 | 100 | 100 | 100 |
common.ts | 100 | 100 | 100 | 100 |
cryptography.ts | 100 | 100 | 100 | 100 |
packages/merkle/src/sparse | 89.62 | 74.32 | 92.59 | 89.16 |
deepSparseMerkleSubTree.ts | 72.22 | 50 | 60 | 70.58 | 13-14,21,37-38
proofs.ts | 83.33 | 58.33 | 100 | 82.05 | 27-37
sparseMerkleTree.ts | 91.45 | 78.84 | 100 | 91.15 | 99,106,118,128-131,143,147,162,275
treeHasher.ts | 100 | 100 | 100 | 100 |
utils.ts | 100 | 100 | 100 | 100 |
packages/merkle/src/sparse/types | 100 | 100 | 100 | 100 |
sparseCompactMerkleProof.ts | 100 | 100 | 100 | 100 |
sparseMerkleProof.ts | 100 | 100 | 100 | 100 |
packages/merkle/src/sum | 96.87 | 90 | 100 | 96.61 |
sumMerkleTree.ts | 96.87 | 90 | 100 | 96.61 | 138-139
packages/merkle/src/sum/types | 100 | 100 | 100 | 100 |
node.ts | 100 | 100 | 100 | 100 |
proof.ts | 100 | 100 | 100 | 100 |
packages/mnemonic/src | 88.88 | 79.24 | 100 | 88.28 |
mnemonic.ts | 98.48 | 90.32 | 100 | 98.41 | 198
utils.ts | 79.71 | 63.63 | 100 | 78.46 | 20-40,66
packages/predicate/src | 66.66 | 50 | 77.77 | 66.66 |
predicate.ts | 66.66 | 50 | 77.77 | 66.66 | 153,179-210
packages/predicate/src/utils | 100 | 100 | 100 | 100 |
getPredicateRoot.ts | 100 | 100 | 100 | 100 |
packages/program/src | 15.67 | 5.74 | 6 | 16.02 |
configs.ts | 100 | 100 | 100 | 100 |
contract-call-script.ts | 10.86 | 0 | 0 | 11.23 | ...134-169,179,182-192,198-200,210-299
contract.ts | 80 | 83.33 | 50 | 85.71 | 104-115
errors.ts | 9.09 | 0 | 0 | 9.09 | 8-34
instruction-set.ts | 0 | 0 | 0 | 0 | 12-49
script-request.ts | 4.65 | 0 | 0 | 4.65 | 28,53-267
utils.ts | 18.18 | 0 | 0 | 18.18 | 10-14,23-40
packages/program/src/functions | 0 | 0 | 0 | 0 |
base-invocation-scope.ts | 0 | 0 | 0 | 0 | 26-358
invocation-results.ts | 0 | 0 | 0 | 0 | 28-224
invocation-scope.ts | 0 | 0 | 0 | 0 | 35-96
multicall-scope.ts | 0 | 0 | 0 | 0 | 21-69
packages/program/src/revert | 12.19 | 0 | 0 | 12.5 |
revert-error-codes.ts | 14.28 | 0 | 0 | 15.38 | 12-41
revert-error.ts | 11.11 | 0 | 0 | 11.11 | 44-151,166-181
packages/providers/src | 59.37 | 50.86 | 54.92 | 61.38 |
coin-quantity.ts | 11.11 | 0 | 0 | 11.11 | 17-27
memory-cache.ts | 100 | 93.75 | 100 | 100 | 55
provider.ts | 56.6 | 50 | 53.44 | 58.04 | ...805-808,814,855-1001,1048,1062,1073
resource.ts | 50 | 100 | 0 | 80 | 39
packages/providers/src/generated | 73.45 | 100 | 43.39 | 82.35 |
operations.ts | 73.45 | 100 | 43.39 | 82.35 | 1606-1618,1624,1630-1651,1663
packages/providers/src/transaction-request | 26.28 | 37.14 | 18.75 | 26.7 |
create-transaction-request.ts | 0 | 0 | 0 | 0 | 30-106
errors.ts | 0 | 100 | 0 | 0 | 8-30
input.ts | 83.33 | 87.5 | 100 | 83.33 | 120,156
output.ts | 11.11 | 0 | 0 | 11.11 | 50-93
script-transaction-request.ts | 27.27 | 50 | 21.42 | 28.12 | 33,81-176
scripts.ts | 75 | 100 | 50 | 75 | 31
storage-slot.ts | 18.18 | 0 | 0 | 18.18 | 16-18,25-33
transaction-request.ts | 17.97 | 25.53 | 14.7 | 18.39 | 141-489
utils.ts | 87.5 | 85.71 | 100 | 87.5 | 21
witness.ts | 100 | 100 | 100 | 100 |
packages/providers/src/transaction-response | 4.54 | 0 | 0 | 4.54 |
getDecodedLogs.ts | 0 | 0 | 0 | 0 | 12-21
transaction-response.ts | 5.26 | 0 | 0 | 5.26 | 92-253
packages/providers/src/transaction-summary | 97.55 | 76.72 | 100 | 97.82 |
assemble-transaction-summary.ts | 100 | 77.77 | 100 | 100 | 62-63
call.ts | 90.47 | 50 | 100 | 90.47 | 34,55
date.ts | 100 | 100 | 100 | 100 |
input.ts | 100 | 100 | 100 | 100 |
operations.ts | 97.95 | 76.47 | 100 | 98.92 | 312
output.ts | 100 | 100 | 100 | 100 |
receipt.ts | 88.88 | 45.45 | 100 | 88.88 | 14-20
status.ts | 100 | 90.9 | 100 | 100 | 46
types.ts | 100 | 100 | 100 | 100 |
packages/providers/src/utils | 94.73 | 86.36 | 89.28 | 94.53 |
block-explorer.ts | 100 | 95.65 | 100 | 100 | 15
fee.ts | 96.15 | 71.42 | 100 | 95.83 | 109
json.ts | 100 | 100 | 100 | 100 |
receipts.ts | 94.54 | 80 | 100 | 94.44 | 54,57,274
sleep.ts | 0 | 100 | 0 | 0 | 3-5
time.ts | 100 | 100 | 100 | 100 |
packages/script/src | 37.83 | 37.5 | 27.27 | 37.83 |
script-invocation-scope.ts | 0 | 0 | 0 | 0 | 21-62
script.ts | 72.22 | 75 | 75 | 72.22 | 80,102-106,115
scripts.ts | 33.33 | 100 | 0 | 33.33 | 20-21
packages/signer/src | 81.25 | 60 | 75 | 81.25 |
signer.ts | 81.25 | 60 | 75 | 81.25 | 42,87-91,136
packages/transactions/src/coders | 93.04 | 83.78 | 94.23 | 93 |
byte-array.ts | 100 | 100 | 100 | 100 |
input.ts | 76.71 | 78.57 | 87.5 | 76.55 | 290-326,375,401-405
output.ts | 98.11 | 85.71 | 100 | 98.09 | 293,331
receipt.ts | 95.32 | 84.37 | 91.48 | 95.31 | 636-657,851,962-963,978,1029-1030,1045
storage-slot.ts | 100 | 100 | 100 | 100 |
transaction.ts | 98.54 | 80 | 100 | 98.52 | 387,418
tx-pointer.ts | 100 | 100 | 100 | 100 |
utxo-id.ts | 100 | 100 | 100 | 100 |
witness.ts | 100 | 100 | 100 | 100 |
packages/utils/src/test-utils | 97.36 | 50 | 100 | 97.29 |
getForcProject.ts | 97.36 | 50 | 100 | 97.29 | 41
packages/utils/src/utils | 95.12 | 75 | 100 | 94.44 |
chunkAndPadBytes.ts | 100 | 100 | 100 | 100 |
concatBytes.ts | 100 | 100 | 100 | 100 |
normalizeString.ts | 87.5 | 50 | 100 | 85.71 | 25-28
packages/versions/scripts | 96.96 | 75 | 100 | 96.96 |
rewriteVersions.ts | 96.96 | 75 | 100 | 96.96 | 68
packages/versions/src | 100 | 100 | 100 | 100 |
cli.ts | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/versions/src/lib | 100 | 100 | 100 | 100 |
checkFuelCoreVersionCompatibility.ts | 100 | 100 | 100 | 100 |
colorizeUserVersion.ts | 100 | 100 | 100 | 100 |
compareUserVersions.ts | 100 | 100 | 100 | 100 |
getSupportedVersions.ts | 100 | 100 | 100 | 100 |
getUserVersions.ts | 100 | 100 | 100 | 100 |
packages/wallet-manager/src | 100 | 100 | 100 | 100 |
wallet-manager.ts | 100 | 100 | 100 | 100 |
packages/wallet-manager/src/storages | 100 | 100 | 100 | 100 |
memory-storage.ts | 100 | 100 | 100 | 100 |
packages/wallet-manager/src/vaults | 96.15 | 87.5 | 100 | 96.07 |
mnemonic-vault.ts | 93.54 | 80 | 100 | 93.54 | 98-101
privatekey-vault.ts | 100 | 100 | 100 | 100 |
packages/wallet/src | 91.62 | 76.92 | 94.73 | 92.06 |
account.ts | 83.51 | 62.5 | 92.3 | 83.51 | 276-310
base-unlocked-wallet.ts | 100 | 100 | 100 | 100 |
configs.ts | 100 | 100 | 100 | 100 |
keystore-wallet.ts | 100 | 100 | 100 | 100 |
utils.ts | 100 | 100 | 100 | 100 |
wallet.ts | 100 | 100 | 100 | 100 |
wallets.ts | 94.11 | 100 | 87.5 | 100 |
packages/wallet/src/test-utils | 100 | 77.77 | 100 | 100 |
defaultChainConfig.ts | 100 | 100 | 100 | 100 |
generateTestWallet.ts | 100 | 100 | 100 | 100 |
launchNode.ts | 100 | 78.26 | 100 | 100 | 59,76-77,129-138
seedTestWallet.ts | 100 | 50 | 100 | 100 | 10
packages/wordlists/src/words | 100 | 100 | 100 | 100 |
english.ts | 100 | 100 | 100 | 100 |
---------------------------------------------------|---------|----------|---------|---------|----------------------------------------
=============================== Coverage summary ===============================
Statements : 81.69% ( 4195/5135 )
Branches : 67.48% ( 1015/1504 )
Functions : 75.45% ( 867/1149 )
Lines : 81.9% ( 4052/4947 )
Killing Fuel-Core node.
Jest node benchmark: 174s
PASS packages/abi-coder/test/interface.test.ts PASS packages/fuel-gauge/src/contract.test.ts PASS packages/providers/test/provider.test.ts PASS packages/providers/src/transaction-summary/operations.test.ts PASS packages/fuel-gauge/src/coverage-contract.test.ts PASS packages/fuel-gauge/src/doc-examples.test.ts PASS packages/math/src/bn.test.ts PASS packages/wallet/src/account.test.ts PASS packages/fuel-gauge/src/predicate/predicate-arguments.test.ts PASS packages/wallet-manager/src/wallet-manager.test.ts (9.066 s) PASS packages/providers/src/utils/receipts.test.ts PASS packages/abi-coder/src/utilities.test.ts PASS packages/transactions/src/coders/transaction.test.ts PASS packages/wallet/src/wallet-unlocked.test.ts PASS packages/address/src/address.test.ts PASS packages/fuel-gauge/src/vectors.test.ts PASS packages/transactions/src/coders/receipt.test.ts PASS packages/wallet/src/transfer.test.ts PASS packages/fuel-gauge/src/contract-factory.test.ts PASS packages/fuel-gauge/src/configurable-contract.test.ts PASS packages/fuel-gauge/src/predicate/predicate-configurables.test.ts PASS packages/mnemonic/src/mnemonic.test.ts PASS packages/fuel-gauge/src/predicate-conditional-inputs.test.ts PASS packages/providers/src/utils/fee.test.ts PASS packages/fuel-gauge/src/token-test-contract.test.ts PASS packages/fuel-gauge/src/multi-token-contract.test.ts PASS packages/fuel-gauge/src/call-test-contract.test.ts PASS packages/transactions/src/coders/input.test.ts PASS packages/abi-typegen/src/runTypegen.test.ts PASS packages/wallet/src/wallet.test.ts PASS packages/script/src/script.test.ts PASS packages/fuel-gauge/src/predicate/predicate-with-contract.test.ts PASS packages/hdwallet/src/hdwallet.test.ts PASS packages/fuel-gauge/src/transaction-summary.test.ts PASS packages/abi-typegen/src/abi/types/EnumType.test.ts PASS packages/fuel-gauge/src/vector-types.test.ts PASS packages/abi-typegen/src/cli.test.ts PASS packages/abi-coder/src/coders/number.test.ts PASS packages/fuel-gauge/src/bytes.test.ts PASS packages/fuel-gauge/src/script-with-vectors.test.ts PASS packages/fuel-gauge/src/storage-test-contract.test.ts PASS apps/docs-snippets/src/guide/predicates/send-and-spend-funds-from-predicates.test.ts PASS packages/fuel-gauge/src/raw-slice.test.ts PASS packages/providers/src/transaction-summary/assemble-transaction-summary.test.ts PASS packages/providers/src/utils/block-explorer.test.ts PASS packages/providers/src/transaction-summary/input.test.ts PASS packages/abi-coder/src/coders/array.test.ts PASS packages/errors/src/test-utils/expect-to-throw-fuel-error.test.ts PASS packages/abi-typegen/src/templates/contract/dts.test.ts PASS packages/fuel-gauge/src/revert-error.test.ts PASS packages/fuel-gauge/src/advanced-logging.test.ts PASS packages/abi-typegen/src/abi/Abi.test.ts PASS apps/docs-snippets/src/guide/contracts/multicalls.test.ts PASS packages/abi-typegen/src/abi/types/StructType.test.ts PASS packages/fuel-gauge/src/transaction-response.test.ts PASS packages/transactions/src/coders/output.test.ts PASS packages/abi-coder/src/coders/b512.test.ts PASS apps/demo-typegen/src/demo.test.ts PASS packages/abi-coder/src/coders/stdString.test.ts PASS packages/providers/test/memory-cache.test.ts PASS packages/providers/src/transaction-summary/output.test.ts PASS packages/abi-coder/src/coders/u64.test.ts PASS packages/fuel-gauge/src/std-lib-string.test.ts PASS packages/abi-coder/src/coders/struct.test.ts PASS packages/versions/src/cli.test.ts PASS packages/abi-typegen/src/AbiTypeGen.test.ts PASS packages/fuel-gauge/src/predicate/predicate-estimations.test.ts PASS packages/abi-coder/src/coders/b256.test.ts PASS packages/providers/src/transaction-summary/status.test.ts PASS apps/docs-snippets/src/guide/scripts/script-custom-transaction.test.ts PASS packages/wallet-manager/src/vaults/mnemonic-vault.test.ts (7.565 s) PASS packages/wallet/src/keystore-wallet.test.ts PASS packages/abi-typegen/src/utils/parseTypeArguments.test.ts PASS packages/fuel-gauge/src/script-with-configurable.test.ts PASS apps/docs-snippets/src/guide/predicates/predicate-with-configurable.test.ts PASS packages/versions/scripts/rewriteVersions.test.ts PASS packages/abi-coder/src/coders/enum.test.ts PASS packages/abi-typegen/src/utils/assembleContracts.test.ts PASS packages/fuel-gauge/src/script-main-args.test.ts PASS packages/fuel-gauge/src/e2e-script.test.ts ● Console
PASS packages/merkle/src/sparse/sparseMerkleTree.test.ts
PASS packages/signer/src/signer.test.ts
PASS apps/docs-snippets/src/guide/contracts/configurable-constants.test.ts
PASS apps/docs-snippets/src/guide/contracts/simulate-transactions.test.ts
PASS packages/abi-typegen/src/utils/assemblePredicates.test.ts
PASS packages/abi-typegen/src/utils/assembleScripts.test.ts
PASS packages/fuel-gauge/src/generic-types-contract.test.ts
PASS packages/providers/src/transaction-summary/receipt.test.ts
PASS apps/docs-snippets/src/guide/types/conversion.test.ts
PASS packages/predicate/test/features/predicate-transactions.test.ts
PASS apps/docs-snippets/src/guide/wallets/transferring-assets.test.ts
PASS apps/docs-snippets/src/guide/wallet-manager/getting-started-with-wallet-manager.test.ts
PASS packages/wallet-manager/src/vaults/privatekey-vault.test.ts
PASS packages/abi-typegen/src/templates/predicate/factory.test.ts
PASS apps/docs-snippets/src/guide/types/address.test.ts
PASS packages/abi-typegen/src/templates/script/factory.test.ts
PASS packages/abi-typegen/src/abi/types/ArrayType.test.ts
PASS packages/abi-coder/src/coders/string.test.ts
PASS packages/versions/src/lib/getUserVersions.test.ts
PASS packages/abi-typegen/src/utils/collectBinFilePaths.test.ts
PASS packages/providers/src/utils/json.test.ts
PASS packages/hasher/src/hasher.test.ts
PASS packages/abi-coder/src/coders/tuple.test.ts
PASS apps/docs-snippets/src/guide/types/evm-address.test.ts
PASS packages/abi-typegen/src/abi/functions/Function.test.ts
PASS packages/abi-coder/src/coders/boolean.test.ts
PASS packages/program/src/contract.test.ts
PASS apps/docs-snippets/src/guide/contracts/call-parameters.test.ts
PASS packages/abi-typegen/src/abi/types/TupleType.test.ts
PASS packages/fuel-gauge/src/predicate/predicate-evaluations.test.ts
PASS packages/fuel-gauge/src/predicate/predicate-invalidations.test.ts
PASS packages/versions/src/lib/checkFuelCoreVersionCompatibility.test.ts
PASS apps/docs-snippets/src/guide/wallet-manager/locking-and-unlocking-wallet-manager.test.ts
PASS apps/docs-snippets/src/guide/types/arrays.test.ts
PASS packages/abi-coder/src/coders/option.test.ts
PASS apps/docs-snippets/src/guide/contracts/deploying-contracts.test.ts
PASS apps/docs-snippets/src/guide/contracts/inter-contract-calls.test.ts
PASS packages/abi-coder/src/coders/byte.test.ts
PASS packages/fuel-gauge/src/auth-testing.test.ts
PASS packages/errors/src/fuel-error.test.ts
PASS packages/crypto/test/aes-ctr.test.ts
PASS packages/providers/src/transaction-request/transaction-request.test.ts
PASS packages/predicate/test/features/predicate-functions.test.ts
PASS packages/versions/src/lib/compareUserVersions.test.ts
PASS packages/abi-typegen/src/utils/extractStructName.test.ts
PASS packages/wallet/src/utils.test.ts
PASS apps/docs-snippets/src/guide/contracts/managing-deployed-contracts.test.ts
PASS packages/abi-coder/src/coders/raw-slice.test.ts
PASS packages/abi-typegen/src/abi/types/EvmAddressType.test.ts
PASS packages/abi-typegen/src/utils/parseConfigurables.test.ts
PASS packages/fuel-gauge/src/payable-annotation.test.ts
PASS apps/docs-snippets/src/guide/types/string.test.ts
PASS apps/docs-snippets/src/guide/contracts/calls-with-different-wallets.test.ts
PASS packages/abi-typegen/src/abi/configurable/Configurable.test.ts
PASS packages/wallet/src/test-utils/launchNode.test.ts
PASS packages/abi-coder/src/coders/vec.test.ts
PASS apps/docs-snippets/src/guide/contracts/cost-estimation.test.ts
PASS apps/docs-snippets/src/guide/types/vector.test.ts
PASS apps/docs-snippets/src/guide/contracts/transaction-parameters.test.ts
PASS packages/abi-typegen/src/templates/utils/formatImports.test.ts
PASS apps/docs-snippets/src/guide/wallets/encrypting-and-decrypting-json-wallets.test.ts
PASS packages/abi-typegen/src/abi/types/OptionType.test.ts
PASS packages/abi-typegen/src/templates/utils/formatStructs.test.ts
PASS packages/merkle/src/sum/sumMerkleTree.test.ts
PASS packages/utils/src/test-utils/getForcProject.test.ts
PASS apps/docs-snippets/src/guide/types/enums.test.ts
PASS apps/docs-snippets/src/guide/contracts/contract-balance.test.ts
PASS packages/abi-typegen/src/utils/parseFunctions.test.ts
PASS packages/utils/src/utils/normalizeString.test.ts
PASS apps/docs-snippets/src/guide/types/bits256.test.ts
PASS packages/abi-typegen/src/templates/utils/formatConfigurables.test.ts
PASS packages/abi-typegen/src/utils/makeConfigurable.test.ts
PASS packages/abi-typegen/src/templates/utils/formatEnums.test.ts
PASS packages/fuels/src/cli.test.ts
PASS apps/docs-snippets/src/guide/types/bits512.test.ts
PASS packages/abi-typegen/src/utils/collectStorageSlotsFilePaths.test.ts
PASS apps/docs-snippets/src/guide/scripts/script-with-configurable.test.ts
PASS packages/providers/src/transaction-summary/date.test.ts
PASS packages/abi-typegen/src/utils/findType.test.ts
PASS packages/crypto/test/bufferFromString.test.ts
PASS packages/abi-typegen/src/utils/validateBinFile.test.ts
PASS apps/docs-snippets/src/guide/types/options.test.ts
PASS packages/abi-typegen/src/utils/parseTypes.test.ts
PASS packages/abi-typegen/src/utils/makeFunction.test.ts
PASS apps/docs-snippets/src/guide/contracts/logs.test.ts
PASS packages/merkle/src/binary/binaryMerkleTree.test.ts
PASS packages/transactions/src/coders/utxo-id.test.ts
PASS packages/transactions/src/coders/tx-pointer.test.ts
PASS packages/abi-typegen/src/templates/contract/factory.test.ts
PASS packages/abi-typegen/src/abi/types/VectorType.test.ts
PASS packages/abi-typegen/src/utils/makeType.test.ts
PASS packages/transactions/src/coders/witness.test.ts
PASS packages/abi-typegen/src/templates/common/index.test.ts
PASS packages/abi-typegen/src/templates/renderHbsTemplate.test.ts
PASS packages/abi-typegen/src/abi/types/RawUntypedPtr.test.ts
PASS apps/docs-snippets/src/guide/types/raw-slice.test.ts
PASS packages/abi-typegen/src/abi/types/RawUntypedSlice.test.ts
PASS packages/crypto/test/stringFromBuffer.test.ts
PASS packages/abi-typegen/src/abi/types/StdStringType.test.ts
PASS apps/docs-snippets/src/guide/types/std-string.test.ts
PASS packages/transactions/src/coders/byte-array.test.ts
PASS apps/docs-snippets/src/guide/types/bytes.test.ts
PASS packages/abi-typegen/src/abi/types/GenericType.test.ts
PASS packages/versions/src/lib/colorizeUserVersion.test.ts
PASS packages/abi-typegen/src/abi/types/BytesType.test.ts
PASS packages/math/src/functional.test.ts
PASS packages/abi-typegen/src/abi/types/U64Type.test.ts
PASS packages/abi-typegen/src/abi/types/U32Type.test.ts
PASS packages/abi-typegen/src/abi/types/U16Type.test.ts
PASS packages/abi-typegen/src/abi/types/B512Type.test.ts
PASS apps/docs-snippets/src/guide/types/tuples.test.ts
PASS packages/abi-typegen/src/abi/types/B256Type.test.ts
PASS packages/abi-typegen/src/abi/types/BoolType.test.ts
PASS packages/crypto/src/shared/scrypt.test.ts
PASS packages/abi-typegen/src/abi/types/U8Type.test.ts
PASS packages/abi-typegen/src/abi/types/StrType.test.ts
PASS packages/utils/src/utils/chunkAndPadBytes.test.ts
PASS packages/abi-typegen/src/templates/common/common.test.ts
PASS packages/transactions/src/coders/storage-slot.test.ts
PASS apps/docs-snippets/src/guide/contracts/index.test.ts
PASS packages/crypto/test/encryptJsonWalletData.test.ts
PASS packages/abi-typegen/src/templates/contract/bytecode.test.ts
PASS apps/docs-snippets/src/guide/types/bytes32.test.ts
PASS apps/docs-snippets/src/guide/testing/tweaking-the-blockchain.test.ts
PASS apps/docs-snippets/src/guide/predicates/index.test.ts
PASS packages/errors/src/test-utils/safeExec.test.ts
PASS packages/utils/src/utils/concatBytes.test.ts
PASS packages/wallet-manager/src/storages/memory-storage.test.ts
PASS apps/docs-snippets/src/guide/types/struct.test.ts
PASS packages/fuels/src/index.test.ts
PASS packages/abi-typegen/src/utils/shouldSkipType.test.ts
PASS packages/versions/src/lib/getSupportedVersions.test.ts
PASS packages/crypto/src/shared/keccak256.test.ts
PASS packages/mnemonic/src/utils.test.ts
PASS packages/wordlists/src/wordlists.test.ts
PASS apps/docs-snippets/src/guide/types/bech32.test.ts
PASS packages/fuel-gauge/src/edge-cases.test.ts
PASS packages/providers/src/utils/time.test.ts
PASS packages/utils/src/index.test.ts
PASS packages/versions/src/index.test.ts
PASS packages/errors/src/test-utils.test.ts
PASS packages/abi-typegen/src/utils/supportedTypes.test.ts
PASS packages/utils/src/test-util.test.ts
PASS packages/abi-typegen/src/index.test.ts
------------------------------------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
------------------------------------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------
All files | 85.03 | 67.03 | 74.31 | 85.08 |
apps/demo-typegen/src/generated-types | 100 | 100 | 100 | 100 |
DemoContractAbi.hex.ts | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
apps/demo-typegen/src/generated-types/factories | 91.66 | 0 | 66.66 | 91.66 |
DemoContractAbi__factory.ts | 91.66 | 0 | 66.66 | 91.66 | 56
apps/docs-snippets/projects | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
apps/docs-snippets/src | 100 | 75 | 100 | 100 |
utils.ts | 100 | 75 | 100 | 100 | 21
packages/abi-coder/src | 90.24 | 83.49 | 71.42 | 90.58 |
abi-coder.ts | 94.73 | 90.47 | 87.5 | 94.59 | 52,96,109,143
constants.ts | 96 | 100 | 0 | 95.83 | 24
function-fragment.ts | 78.65 | 69.56 | 81.81 | 81.57 | 96,110-111,146-185
index.ts | 100 | 100 | 15.78 | 100 |
interface.ts | 66.66 | 50 | 76.47 | 66.66 | 61-65,77,86-104
resolved-abi-type.ts | 98.73 | 100 | 94.73 | 98.5 | 20
utilities.ts | 98.48 | 94.11 | 91.66 | 98.36 | 153
packages/abi-coder/src/coders | 100 | 100 | 100 | 100 |
abstract-coder.ts | 100 | 100 | 100 | 100 |
array.ts | 100 | 100 | 100 | 100 |
b256.ts | 100 | 100 | 100 | 100 |
b512.ts | 100 | 100 | 100 | 100 |
boolean.ts | 100 | 100 | 100 | 100 |
byte.ts | 100 | 100 | 100 | 100 |
enum.ts | 100 | 100 | 100 | 100 |
number.ts | 100 | 100 | 100 | 100 |
option.ts | 100 | 100 | 100 | 100 |
raw-slice.ts | 100 | 100 | 100 | 100 |
stdString.ts | 100 | 100 | 100 | 100 |
string.ts | 100 | 100 | 100 | 100 |
struct.ts | 100 | 100 | 100 | 100 |
tuple.ts | 100 | 100 | 100 | 100 |
u64.ts | 100 | 100 | 100 | 100 |
vec.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src | 100 | 100 | 100 | 100 |
AbiTypeGen.ts | 100 | 100 | 100 | 100 |
cli.ts | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
runTypegen.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/abi | 100 | 100 | 100 | 100 |
Abi.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/abi/configurable | 100 | 100 | 100 | 100 |
Configurable.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/abi/functions | 100 | 100 | 100 | 100 |
Function.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/abi/types | 100 | 100 | 100 | 100 |
AType.ts | 100 | 100 | 100 | 100 |
ArrayType.ts | 100 | 100 | 100 | 100 |
B256Type.ts | 100 | 100 | 100 | 100 |
B512Type.ts | 100 | 100 | 100 | 100 |
BoolType.ts | 100 | 100 | 100 | 100 |
BytesType.ts | 100 | 100 | 100 | 100 |
EnumType.ts | 100 | 100 | 100 | 100 |
EvmAddressType.ts | 100 | 100 | 100 | 100 |
GenericType.ts | 100 | 100 | 100 | 100 |
OptionType.ts | 100 | 100 | 100 | 100 |
RawUntypedPtr.ts | 100 | 100 | 100 | 100 |
RawUntypedSlice.ts | 100 | 100 | 100 | 100 |
StdStringType.ts | 100 | 100 | 100 | 100 |
StrType.ts | 100 | 100 | 100 | 100 |
StructType.ts | 100 | 100 | 100 | 100 |
TupleType.ts | 100 | 100 | 100 | 100 |
U16Type.ts | 100 | 100 | 100 | 100 |
U32Type.ts | 100 | 100 | 100 | 100 |
U64Type.ts | 100 | 100 | 100 | 100 |
U8Type.ts | 100 | 100 | 100 | 100 |
VectorType.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/templates | 100 | 100 | 100 | 100 |
renderHbsTemplate.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/templates/common | 100 | 100 | 100 | 100 |
_header.hbs | 100 | 100 | 100 | 100 |
common.hbs | 100 | 100 | 100 | 100 |
common.ts | 100 | 100 | 100 | 100 |
index.hbs | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/templates/contract | 100 | 100 | 100 | 100 |
bytecode.hbs | 100 | 100 | 100 | 100 |
bytecode.ts | 100 | 100 | 100 | 100 |
dts.hbs | 100 | 100 | 100 | 100 |
dts.ts | 100 | 100 | 100 | 100 |
factory.hbs | 100 | 100 | 100 | 100 |
factory.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/templates/predicate | 100 | 100 | 100 | 100 |
factory.hbs | 100 | 100 | 100 | 100 |
factory.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/templates/script | 100 | 100 | 100 | 100 |
factory.hbs | 100 | 100 | 100 | 100 |
factory.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/templates/utils | 100 | 100 | 100 | 100 |
formatConfigurables.ts | 100 | 100 | 100 | 100 |
formatEnums.ts | 100 | 100 | 100 | 100 |
formatImports.ts | 100 | 100 | 100 | 100 |
formatStructs.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/types/enums | 100 | 100 | 100 | 100 |
ProgramTypeEnum.ts | 100 | 100 | 100 | 100 |
TargetEnum.ts | 100 | 100 | 100 | 100 |
packages/abi-typegen/src/utils | 100 | 100 | 100 | 100 |
assembleContracts.ts | 100 | 100 | 100 | 100 |
assemblePredicates.ts | 100 | 100 | 100 | 100 |
assembleScripts.ts | 100 | 100 | 100 | 100 |
collectBinFilePaths.ts | 100 | 100 | 100 | 100 |
collectStorageSlotsFilePaths.ts | 100 | 100 | 100 | 100 |
extractStructName.ts | 100 | 100 | 100 | 100 |
findType.ts | 100 | 100 | 100 | 100 |
makeConfigurable.ts | 100 | 100 | 100 | 100 |
makeFunction.ts | 100 | 100 | 100 | 100 |
makeType.ts | 100 | 100 | 100 | 100 |
parseConfigurables.ts | 100 | 100 | 100 | 100 |
parseFunctions.ts | 100 | 100 | 100 | 100 |
parseTypeArguments.ts | 100 | 100 | 100 | 100 |
parseTypes.ts | 100 | 100 | 100 | 100 |
shouldSkipAbiType.ts | 100 | 100 | 100 | 100 |
supportedTypes.ts | 100 | 100 | 100 | 100 |
validateBinFile.ts | 100 | 100 | 100 | 100 |
packages/address/src | 90 | 74.19 | 86.66 | 89.41 |
address.ts | 89.47 | 58.33 | 82.35 | 89.47 | 37,77,167-176
utils.ts | 90.38 | 84.21 | 92.3 | 89.36 | 129-137
packages/crypto/src | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/crypto/src/node | 100 | 100 | 100 | 100 |
aes-ctr.ts | 100 | 100 | 100 | 100 |
bufferFromString.ts | 100 | 100 | 100 | 100 |
encryptJsonWalletData.ts | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
randomBytes.ts | 100 | 100 | 100 | 100 |
stringFromBuffer.ts | 100 | 100 | 100 | 100 |
packages/crypto/src/shared | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
keccak256.ts | 100 | 100 | 100 | 100 |
scrypt.ts | 100 | 100 | 100 | 100 |
packages/errors/src | 100 | 100 | 100 | 100 |
error-codes.ts | 100 | 100 | 100 | 100 |
fuel-error.ts | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
test-utils.ts | 100 | 100 | 100 | 100 |
packages/errors/src/test-utils | 100 | 100 | 100 | 100 |
expect-to-throw-fuel-error.ts | 100 | 100 | 100 | 100 |
safeExec.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-address | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-bytes | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-false | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-main-args-struct | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-main-args-vector | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-multi-args | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-raw-slice | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-std-lib-string | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-struct | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-triple-sig | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-true | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-u32 | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-vector-types | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/fixtures/forc-projects/predicate-with-configurable | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/src | 100 | 100 | 100 | 100 |
utils.ts | 100 | 100 | 100 | 100 |
packages/fuel-gauge/src/predicate/utils/predicate | 96.61 | 40 | 100 | 100 |
assertBalance.ts | 100 | 100 | 100 | 100 |
assertBalances.ts | 100 | 100 | 100 | 100 |
fundPredicate.ts | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
setupContract.ts | 91.66 | 40 | 100 | 100 | 19-26
setupWallets.ts | 100 | 100 | 100 | 100 |
packages/fuels/src | 100 | 100 | 50 | 100 |
cli.ts | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 33.33 | 100 |
packages/hasher/src | 72.22 | 44.44 | 100 | 72.22 |
hasher.ts | 72.22 | 44.44 | 100 | 72.22 | 69-82,92-106
packages/hdwallet/src | 94.89 | 80.39 | 100 | 94.84 |
hdwallet-spec.ts | 100 | 100 | 100 | 100 |
hdwallet.ts | 94.84 | 80.39 | 100 | 94.79 | 53,97,131,197,242
packages/math/src | 90.59 | 75.92 | 82.05 | 90.43 |
bn.ts | 87.64 | 85.36 | 78.78 | 87.35 | 74,88,95,169-185,224,241-243
configs.ts | 100 | 100 | 100 | 100 |
decimal.ts | 100 | 46.15 | 100 | 100 | 5-7,20
functional.ts | 100 | 100 | 100 | 100 |
packages/merkle/src/binary | 97.18 | 71.42 | 100 | 97.01 |
binaryMerkleTree.ts | 97.18 | 71.42 | 100 | 97.01 | 73,113
packages/merkle/src/binary/types | 100 | 100 | 100 | 100 |
node.ts | 100 | 100 | 100 | 100 |
packages/merkle/src/common | 100 | 100 | 100 | 100 |
common.ts | 100 | 100 | 100 | 100 |
cryptography.ts | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/merkle/src/sparse | 90.75 | 74.54 | 92.59 | 90.39 |
deepSparseMerkleSubTree.ts | 76.19 | 66.66 | 60 | 75 | 13-14,21,37-38
proofs.ts | 86 | 63.63 | 100 | 85.1 | 27-37
sparseMerkleTree.ts | 91.86 | 76.31 | 100 | 91.59 | 99,106,118,128-131,143,147,162,275
treeHasher.ts | 100 | 100 | 100 | 100 |
utils.ts | 100 | 100 | 100 | 100 |
packages/merkle/src/sparse/types | 100 | 100 | 100 | 100 |
sparseCompactMerkleProof.ts | 100 | 100 | 100 | 100 |
sparseMerkleProof.ts | 100 | 100 | 100 | 100 |
packages/merkle/src/sum | 97.26 | 83.33 | 100 | 97.05 |
sumMerkleTree.ts | 97.26 | 83.33 | 100 | 97.05 | 138-139
packages/merkle/src/sum/types | 100 | 100 | 100 | 100 |
node.ts | 100 | 100 | 100 | 100 |
proof.ts | 100 | 100 | 100 | 100 |
packages/mnemonic/src | 89.93 | 75.6 | 100 | 89.43 |
mnemonic-specs.ts | 100 | 100 | 100 | 100 |
mnemonic.ts | 98.61 | 88 | 100 | 98.55 | 198
utils.ts | 81.57 | 56.25 | 100 | 80.55 | 20-40,66
packages/predicate/src | 72.22 | 53.84 | 77.77 | 72.22 |
predicate.ts | 72.22 | 53.84 | 77.77 | 72.22 | 153,179-210
packages/predicate/src/utils | 100 | 100 | 100 | 100 |
getPredicateRoot.ts | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/program/src | 29.72 | 7.81 | 6 | 28.97 |
configs.ts | 100 | 100 | 100 | 100 |
contract-call-script.ts | 21.15 | 0 | 0 | 20.2 | 65-115,121,127-129,134-169,179,182-192,198-200,210-299
contract.ts | 85 | 83.33 | 50 | 89.47 | 104-115
errors.ts | 33.33 | 0 | 0 | 33.33 | 8,17-34
instruction-set.ts | 21.42 | 0 | 0 | 21.42 | 12-49
script-request.ts | 21.15 | 0 | 0 | 19.6 | 28,53-97,114-118,139-172,214-267
utils.ts | 40 | 0 | 0 | 35.71 | 10-14,23-30,39-40
packages/program/src/functions | 13.08 | 0 | 0 | 13.29 |
base-invocation-scope.ts | 9.52 | 0 | 0 | 9.61 | 26-32,51-358
invocation-results.ts | 17.77 | 0 | 0 | 18.18 | 28-31,57-115,151-182,206-224
invocation-scope.ts | 19.04 | 0 | 0 | 20 | 35-96
multicall-scope.ts | 15 | 0 | 0 | 15 | 21-69
packages/program/src/revert | 29.41 | 0 | 0 | 28.57 |
revert-error-codes.ts | 29.41 | 0 | 0 | 31.25 | 12,18-41
revert-error.ts | 29.41 | 0 | 0 | 27.27 | 44-45,66-78,96-97,114-115,132-133,150-151,166-181
packages/providers/src | 63.25 | 49.45 | 54.92 | 64.55 |
coin-quantity.ts | 38.46 | 0 | 0 | 33.33 | 17-27
memory-cache.ts | 100 | 100 | 100 | 100 |
provider.ts | 59.64 | 50 | 53.44 | 61.08 | 378-380,437-438,493-496,533-553,575,598-706,734,748,761-785,802,805-808,814,855-1001,1048,1062,1073
resource.ts | 66.66 | 100 | 0 | 80 | 39
packages/providers/src/generated | 73.21 | 100 | 43.39 | 82.75 |
operations.ts | 73.21 | 100 | 43.39 | 82.75 | 1606-1618,1624,1630-1651,1663
packages/providers/src/transaction-request | 44.14 | 38.94 | 18.46 | 43.54 |
create-transaction-request.ts | 28.57 | 0 | 0 | 28.57 | 30-106
errors.ts | 23.07 | 100 | 0 | 23.07 | 8-9,16-19,27-30
index.ts | 100 | 100 | 100 | 100 |
input.ts | 88.88 | 87.5 | 100 | 88.23 | 120,156
output.ts | 46.66 | 0 | 0 | 42.85 | 50-93
script-transaction-request.ts | 41.46 | 50 | 21.42 | 42.5 | 33,81-176
scripts.ts | 80 | 100 | 50 | 80 | 31
storage-slot.ts | 30.76 | 0 | 0 | 25 | 16-18,25-33
transaction-request.ts | 29.12 | 29.26 | 14.28 | 29.7 | 141-489
utils.ts | 92.3 | 83.33 | 100 | 91.66 | 21
witness.ts | 100 | 100 | 100 | 100 |
packages/providers/src/transaction-response | 26.31 | 0 | 0 | 26.31 |
getDecodedLogs.ts | 33.33 | 0 | 0 | 33.33 | 12-21
index.ts | 100 | 100 | 100 | 100 |
transaction-response.ts | 21.73 | 0 | 0 | 21.73 | 92-253
packages/providers/src/transaction-summary | 98.02 | 80.21 | 100 | 98.25 |
assemble-transaction-summary.ts | 100 | 75 | 100 | 100 | 62-63
call.ts | 91.66 | 75 | 100 | 91.3 | 34,55
date.ts | 100 | 100 | 100 | 100 |
input.ts | 100 | 100 | 100 | 100 |
operations.ts | 98.37 | 79.48 | 100 | 99.15 | 312
output.ts | 100 | 100 | 100 | 100 |
receipt.ts | 91.3 | 33.33 | 100 | 90 | 14-20
status.ts | 100 | 100 | 100 | 100 |
types.ts | 100 | 100 | 100 | 100 |
packages/providers/src/utils | 95.7 | 85.24 | 89.28 | 95.33 |
block-explorer.ts | 100 | 95.23 | 100 | 100 | 15
fee.ts | 96.96 | 66.66 | 100 | 96.15 | 109
index.ts | 100 | 100 | 100 | 100 |
json.ts | 100 | 100 | 100 | 100 |
receipts.ts | 95.31 | 78.57 | 100 | 95.16 | 54,57,274
sleep.ts | 25 | 100 | 0 | 25 | 3-5
time.ts | 100 | 100 | 100 | 100 |
packages/script/src | 54 | 50 | 27.27 | 54 |
index.ts | 100 | 100 | 100 | 100 |
script-invocation-scope.ts | 20 | 0 | 0 | 20 | 21-62
script.ts | 79.16 | 100 | 75 | 79.16 | 80,102-106,115
scripts.ts | 50 | 100 | 0 | 50 | 20-21
packages/signer/src | 85 | 50 | 75 | 85 |
signer.ts | 85 | 50 | 75 | 85 | 42,87-91,136
packages/transactions/src/coders | 93.51 | 83.33 | 94.17 | 93.51 |
byte-array.ts | 100 | 100 | 100 | 100 |
input.ts | 78.2 | 78.57 | 87.5 | 78.2 | 290-326,375,401-405
output.ts | 98.24 | 85.71 | 100 | 98.24 | 293,331
receipt.ts | 95.53 | 84.37 | 91.48 | 95.53 | 636-657,851,962-963,978,1029-1030,1045
storage-slot.ts | 100 | 100 | 100 | 100 |
transaction.ts | 98.65 | 80 | 100 | 98.65 | 387,418
tx-pointer.ts | 100 | 100 | 100 | 100 |
witness.ts | 100 | 100 | 100 | 100 |
packages/utils/src | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
test-utils.ts | 100 | 100 | 100 | 100 |
packages/utils/src/test-utils | 98.07 | 0 | 100 | 97.56 |
getForcProject.ts | 98.07 | 0 | 100 | 97.56 | 41
packages/utils/src/utils | 95.55 | 50 | 100 | 94.59 |
chunkAndPadBytes.ts | 100 | 100 | 100 | 100 |
concatBytes.ts | 100 | 100 | 100 | 100 |
normalizeString.ts | 88.88 | 0 | 100 | 86.66 | 25-28
packages/versions/scripts | 100 | 80 | 100 | 100 |
rewriteVersions.ts | 100 | 80 | 100 | 100 | 11-16
packages/versions/src | 100 | 100 | 100 | 100 |
cli.ts | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
packages/versions/src/lib | 100 | 100 | 100 | 100 |
checkFuelCoreVersionCompatibility.ts | 100 | 100 | 100 | 100 |
colorizeUserVersion.ts | 100 | 100 | 100 | 100 |
compareUserVersions.ts | 100 | 100 | 100 | 100 |
getSupportedVersions.ts | 100 | 100 | 100 | 100 |
getUserVersions.ts | 100 | 100 | 100 | 100 |
packages/wallet-manager/src | 100 | 100 | 100 | 100 |
wallet-manager-spec.ts | 100 | 100 | 100 | 100 |
wallet-manager.ts | 100 | 100 | 100 | 100 |
packages/wallet-manager/src/storages | 100 | 100 | 100 | 100 |
memory-storage.ts | 100 | 100 | 100 | 100 |
packages/wallet-manager/src/vaults | 96.61 | 92.3 | 100 | 96.55 |
mnemonic-vault.ts | 94.28 | 87.5 | 100 | 94.28 | 98-101
privatekey-vault.ts | 100 | 100 | 100 | 100 |
packages/wallet/src | 93.27 | 71.42 | 94.73 | 93.56 |
account.ts | 85 | 53.84 | 92.3 | 85 | 276-310
base-unlocked-wallet.ts | 100 | 100 | 100 | 100 |
configs.ts | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
keystore-wallet.ts | 100 | 100 | 100 | 100 |
test-utils.ts | 100 | 100 | 100 | 100 |
utils.ts | 100 | 100 | 100 | 100 |
wallet-spec.ts | 100 | 100 | 100 | 100 |
wallet.ts | 100 | 100 | 100 | 100 |
wallets.ts | 96 | 100 | 87.5 | 100 |
packages/wallet/src/test-utils | 100 | 90 | 100 | 100 |
defaultChainConfig.ts | 100 | 100 | 100 | 100 |
generateTestWallet.ts | 100 | 100 | 100 | 100 |
launchNode.ts | 100 | 94.11 | 100 | 100 | 59
seedTestWallet.ts | 100 | 50 | 100 | 100 | 10
packages/wordlists/src/words | 100 | 100 | 100 | 100 |
english.ts | 100 | 100 | 100 | 100 |
------------------------------------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------
Test Suites: 1 skipped, 224 passed, 224 of 225 total
Tests: 18 skipped, 1271 passed, 1289 total
Snapshots: 2 passed, 2 total
Time: 174.444 s
Coverage
Example comment generated by new coverage report
(+90%)
(+0%)
(+66.66%)
(+90%)
(+100%)
(+100%)
(+100%)
(+100%)
(+100%)
(+75%)
(+100%)
(+100%)
Total: