apps/docs/src/guide/testing/fuel-core-options.md
The launchTestNode creates a temporary snapshot directory and configurations every time it runs. The path to this directory is passed to fuel-core via the --snapshot flag.
The default snapshot used is that of the current testnet network iteration.
Click here to see what it looks like.
If you need a different snapshot, you can specify a DEFAULT_CHAIN_SNAPSHOT_DIR environment variable which points to your snapshot directory. launchTestNode will read that config and work with it instead, integrating all the functionality with it the same way it'd do with the default config.
How and where you specify the environment variable depends on your testing tool.
<<< @./snippets/launching-a-test-node.ts#custom-chain-config{ts:line-numbers}
Besides the snapshot, you can provide arguments to the fuel-core node via the nodeOptions.args property. For a detailed list of all possible arguments run:
fuel-core run --help
If you want all your tests to run with the same arguments, consider specifying the DEFAULT_FUEL_CORE_ARGS environment variable.
<<< @./snippets/launching-a-test-node.ts#custom-fuel-core-args{ts:line-numbers}