FuelLabs / fuels-ts

Fuel Network Typescript SDK
https://docs.fuel.network/docs/fuels-ts/
Apache License 2.0
44.4k stars 1.32k forks source link

Export [test] utilities in umbrella package #2223

Open arboleya opened 1 month ago

arboleya commented 1 month ago

We should export all secondary entry points (utilities) using dedicated entry points in the fuels umbrella package.

For example:

The idea is that each of these would consolidate all utilities of the same group.

A few examples I grabbed from the codebase:

import { generateTestWallet } from '@fuel-ts/account/test-utils';
import { expectToThrowFuelError } from '@fuel-ts/errors/test-utils';
import { findBinPath } from '@fuel-ts/utils/cli-utils';

The umbrella package should be the only thing users should have to deal with.

nedsalk commented 1 month ago

Related comment. That PR has implementation for how the infrastructure part of this issue would be handled.