> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-sdk-testing-latest.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I disable W&B while testing my code?

To configure W\&B as a no-op for testing, use `wandb.init(mode="disabled")` or set `WANDB_MODE=disabled`.

<Note>
  Even when you use `wandb.init(mode="disabled")`, W\&B still saves artifacts to `WANDB_CACHE_DIR`.
</Note>

***

<Badge stroke shape="pill" color="orange" size="md">[Artifacts](/support/models/tags/artifacts)</Badge>
