You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {object} [options] - Configuration options for test setup
19
19
* @param {Array<object>} [options.kinds] - Array of addon test case kinds to generate. Each kind has `type` (string) and `options` (Object) properties.
20
-
* @param {Function} [options.filter] - Optional filter function to exclude certain test cases. Receives an object with `variant` (string) and `kind` (Object) properties, returns boolean.
20
+
* @param {(addonTestCase: { variant: string; kind: { type: string; options?: object } }) => boolean} [options.filter] - Optional filter function to exclude certain test cases. Receives an object with `variant` (string) and `kind` (Object) properties, returns boolean.
21
21
* @param {boolean} [options.browser=true] - Whether to enable browser testing with Playwright
22
22
* @param {Function} [options.preAdd] - Optional hook called before adding addons to each test case. Receives an object with `addonTestCase` (Object with `variant` and `kind`) and `cwd` (string) properties. May return Promise or void.
23
-
* @returns {object} Object containing: `test` (Function) - The extended Vitest test function with fixtures; `testCases` (Array<object>) - Array of test cases, each with `variant` (string) and `kind` (Object) properties; `prepareServer` (Function) - Function to build and start preview server
23
+
* @returns {{ test: import('vitest').TestAPI<{}>; testCases: Array<{ variant: string; kind: { type: string; options?: object } }>; prepareServer: (options: { cwd: string; page: import('@playwright/test').Page; buildCommand?: string; previewCommand?: string }) => Promise<{ url: string; close: Function }> }} Object containing: `test` - The extended Vitest test function with fixtures; `testCases` - Array of test cases, each with `variant` (string) and `kind` (Object) properties; `prepareServer` - Function to build and start preview server
* @param {object} [options] - Configuration options for test setup
19
19
* @param {Array<object>} [options.kinds] - Array of addon test case kinds to generate. Each kind has `type` (string) and `options` (Object) properties.
20
-
* @param {Function} [options.filter] - Optional filter function to exclude certain test cases. Receives an object with `variant` (string) and `kind` (Object) properties, returns boolean.
20
+
* @param {(addonTestCase: { variant: string; kind: { type: string; options?: object } }) => boolean} [options.filter] - Optional filter function to exclude certain test cases. Receives an object with `variant` (string) and `kind` (Object) properties, returns boolean.
21
21
* @param {boolean} [options.browser=true] - Whether to enable browser testing with Playwright
22
22
* @param {Function} [options.preAdd] - Optional hook called before adding addons to each test case. Receives an object with `addonTestCase` (Object with `variant` and `kind`) and `cwd` (string) properties. May return Promise or void.
23
-
* @returns {object} Object containing: `test` (Function) - The extended Vitest test function with fixtures; `testCases` (Array<object>) - Array of test cases, each with `variant` (string) and `kind` (Object) properties; `prepareServer` (Function) - Function to build and start preview server
23
+
* @returns {{ test: import('vitest').TestAPI<{}>; testCases: Array<{ variant: string; kind: { type: string; options?: object } }>; prepareServer: (options: { cwd: string; page: import('@playwright/test').Page; buildCommand?: string; previewCommand?: string }) => Promise<{ url: string; close: Function }> }} Object containing: `test` - The extended Vitest test function with fixtures; `testCases` - Array of test cases, each with `variant` (string) and `kind` (Object) properties; `prepareServer` - Function to build and start preview server
0 commit comments