# Root bunfig.toml for Stock Bot Trading Platform
# Configures Bun for the entire monorepo workspace
# Look for packages in workspace root

peer = true
workspaces = true

[install.scopes]
"@stock-bot" = { registry = "file:../../" }

[test]
# Configure coverage and test behavior
coverage = true
timeout = "30s"

# Configure test environment
preload = ["./test/setup.ts"]

# Environment variables for tests
[test.env]
NODE_ENV = "test"

# Module path resolution
[bun]
paths = {
  "@stock-bot/*" = ["./libs/*/src"]
}
