@theholocron/vitest-config 7.14.2 → 7.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ declare function storybook(configDir?: string, options?: {}): Promise<{
14
14
  browser: {
15
15
  enabled: boolean;
16
16
  headless: boolean;
17
- provider: string;
17
+ provider: import("vitest/node").BrowserProviderOption<import("@vitest/browser-playwright").PlaywrightProviderOptions>;
18
18
  instances: {
19
19
  browser: string;
20
20
  }[];
@@ -9,6 +9,7 @@
9
9
  */
10
10
  async function storybook(configDir = ".storybook", options = {}) {
11
11
  const { storybookTest } = await import("@storybook/addon-vitest/vitest-plugin");
12
+ const { playwright } = await import("@vitest/browser-playwright");
12
13
  return {
13
14
  plugins: [storybookTest({ configDir })],
14
15
  test: {
@@ -16,7 +17,7 @@ async function storybook(configDir = ".storybook", options = {}) {
16
17
  browser: {
17
18
  enabled: true,
18
19
  headless: true,
19
- provider: "playwright",
20
+ provider: playwright({}),
20
21
  instances: [{ browser: "chromium" }]
21
22
  },
22
23
  ...options
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/vitest-config",
3
- "version": "7.14.2",
3
+ "version": "7.14.4",
4
4
  "description": "Vitest configuration presets for libraries, React apps, and Storybook within the Galaxy.",
5
5
  "homepage": "https://github.com/theholocron/configs/tree/main/packages/vitest-config#readme",
6
6
  "bugs": "https://github.com/theholocron/configs/issues",
@@ -24,7 +24,7 @@
24
24
  "typescript": "^5.9.3",
25
25
  "vitest": "^4.1.10",
26
26
  "@vitest/coverage-v8": "^4.1.10",
27
- "@theholocron/tsconfig": "7.14.2"
27
+ "@theholocron/tsconfig": "7.14.4"
28
28
  },
29
29
  "exports": {
30
30
  ".": {
@@ -85,6 +85,7 @@
85
85
  "@vitest/browser": "^4",
86
86
  "@vitest/coverage-v8": "^4",
87
87
  "@storybook/addon-vitest": "^9",
88
+ "@vitest/browser-playwright": "^4",
88
89
  "jsdom": "^26",
89
90
  "playwright": "^1"
90
91
  },
@@ -107,6 +108,9 @@
107
108
  "@storybook/addon-vitest": {
108
109
  "optional": true
109
110
  },
111
+ "@vitest/browser-playwright": {
112
+ "optional": true
113
+ },
110
114
  "jsdom": {
111
115
  "optional": true
112
116
  },