Volt.Test.Config (Volt v0.15.2)

Copy Markdown View Source

Normalized Volt test runner configuration.

Configuration follows Volt's existing flat/profile style:

config :volt, :test,
  root: "assets",
  include: ["**/*.{test,spec}.{js,ts,jsx,tsx}"],
  exclude: ["vendor/**", "node_modules/**"],
  bundle: [plugins: [Volt.Plugin.React]]

config :volt, :my_app_web,
  test: [root: "apps/my_app_web/assets"]

Profile-specific test options override global config :volt, :test values. Explicit overrides win over both.

Summary

Types

t()

@type t() :: %Volt.Test.Config{
  browser: boolean(),
  browsers: [atom()],
  bundle: keyword(),
  exclude: [String.t()],
  include: [String.t()],
  js_runtime: keyword(),
  playwright: keyword(),
  root: String.t(),
  setup_files: [String.t()],
  timeout: timeout()
}

Functions

read(profile_or_overrides \\ [])

@spec read(atom() | keyword()) :: t()

read(profile, overrides)

@spec read(
  atom() | nil,
  keyword()
) :: t()