Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.32 KB

File metadata and controls

45 lines (36 loc) · 1.32 KB
title browser.detailsPanelPosition | Config
outline deep

browser.detailsPanelPosition

  • 类型: 'right' | 'bottom'
  • 默认值: 'right'
  • 命令行终端: --browser.detailsPanelPosition=bottom, --browser.detailsPanelPosition=right

Controls the default position of the details panel in the Vitest UI when running browser tests.

  • 'right' - Shows the details panel on the right side with a horizontal split between the browser viewport and the details panel.
  • 'bottom' - Shows the details panel at the bottom with a vertical split between the browser viewport and the details panel.
import { defineConfig } from 'vitest/config'

export default defineConfig({
  test: {
    browser: {
      enabled: true,
      detailsPanelPosition: 'bottom', // or 'right'
    },
  },
})

Example

::: tabs == bottom

Vitest UI with details at the bottom

Vitest UI with details at the bottom

== right

Vitest UI with details at the right side

Vitest UI with details at the right side

:::