File tree Expand file tree Collapse file tree 1 file changed +30
-11
lines changed Expand file tree Collapse file tree 1 file changed +30
-11
lines changed Original file line number Diff line number Diff line change @@ -13,17 +13,17 @@ import { storybookTest } from '@storybook/addon-vitest/vitest-plugin';
13
13
import { defineConfig } from 'vitest/config' ;
14
14
15
15
export default defineConfig ( {
16
- // optimizeDeps: {
17
- // exclude: [
18
- // 'playwright',
19
- // 'playwright-core',
20
- // '@playwright/test',
21
- // 'storybook',
22
- // '@storybook/addon-vitest',
23
- // 'fs',
24
- // 'crypto',
25
- // ],
26
- // },
16
+ optimizeDeps : {
17
+ exclude : [
18
+ 'playwright' ,
19
+ 'playwright-core' ,
20
+ '@playwright/test' ,
21
+ 'storybook' ,
22
+ '@storybook/addon-vitest' ,
23
+ 'fs' ,
24
+ 'crypto' ,
25
+ ] ,
26
+ } ,
27
27
test : {
28
28
// Default test configuration
29
29
browser : {
@@ -74,6 +74,25 @@ export default defineConfig({
74
74
// See options at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon#storybooktest
75
75
storybookTest ( ) ,
76
76
] ,
77
+ define : {
78
+ global : 'globalThis' ,
79
+ process : {
80
+ env : { } ,
81
+ } ,
82
+ } ,
83
+ optimizeDeps : {
84
+ exclude : [
85
+ 'playwright' ,
86
+ 'playwright-core' ,
87
+ '@playwright/test' ,
88
+ 'storybook' ,
89
+ '@storybook/addon-vitest' ,
90
+ 'fs' ,
91
+ 'crypto' ,
92
+ 'path' ,
93
+ 'os' ,
94
+ ] ,
95
+ } ,
77
96
test : {
78
97
name : 'storybook' ,
79
98
browser : {
You can’t perform that action at this time.
0 commit comments