UNPKG

@stacksjs/stx

Version:

A performant UI Framework. Powered by Bun.

44 lines 1.07 kB
/** * Create a Bun test suite for stories * Usage in test file: * * ```typescript * import { createStoryTestSuite } from '@stacksjs/stx/story' * * createStoryTestSuite({ * filter: ['Button', 'Card'], * threshold: 0.01, * }) * ``` */ export declare function createStoryTestSuite(options?: BunTestOptions): Promise<void>; /** * Create individual test cases for each story */ export declare function createStoryTests(options?: BunTestOptions): Promise<void>; /** * Run story tests programmatically */ export declare function runStoryTests(options?: BunTestOptions): Promise<{ passed: number failed: number total: number duration: number }>; /** * Generate test file content for stories */ export declare function generateTestFile(storyNames: string[]): string; /** * Watch mode for story tests */ export declare function watchStoryTests(options?: BunTestOptions): Promise<void>; /** * Test options for Bun integration */ export declare interface BunTestOptions { filter?: string[] update?: boolean threshold?: number timeout?: number }