跳到主要内容

Config

xbell.config.ts
import type { XBellConfig } from 'xbell';

const config: XBellConfig = {
browser: {
headless: false,
},
include: ['**/*.{test,spec}.{js,ts,jsx,tsx}'],
};

export default config;

include

  • type: <string[]>
  • default: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}']

browser

headless

  • type: <boolean>
  • default: true

是否使用无头模式

coverage

enable

  • type <boolean>
  • default: false

是否开启覆盖率输出