type ChaiConfig = { /** * @default false */ includeStack: boolean; /** * @default true */ showDiff: boolean; /** * @default 40 */ truncateThreshold: number; };
undefined
自定义 Chai config。
import { defineConfig } from '@rstest/core'; export default defineConfig({ chaiConfig: { truncateThreshold: 100, }, });