@@ -68,8 +68,6 @@ export const serverLogs: string[] = []
68
68
export const browserLogs : string [ ] = [ ]
69
69
export const browserErrors : Error [ ] = [ ]
70
70
71
- export let resolvedConfig : ResolvedConfig = undefined !
72
-
73
71
export let page : Page = undefined !
74
72
export let browser : Browser = undefined !
75
73
export let viteTestUrl : string = ''
@@ -104,15 +102,6 @@ beforeAll(async (s) => {
104
102
browser = await chromium . connect ( wsEndpoint )
105
103
page = await browser . newPage ( )
106
104
107
- const globalConsole = global . console
108
- const warn = globalConsole . warn
109
- globalConsole . warn = ( msg , ...args ) => {
110
- // suppress @vue /reactivity-transform warning
111
- if ( msg . includes ( '@vue/reactivity-transform' ) ) return
112
- if ( msg . includes ( 'Generated an empty chunk' ) ) return
113
- warn . call ( globalConsole , msg , ...args )
114
- }
115
-
116
105
try {
117
106
page . on ( 'console' , ( msg ) => {
118
107
// ignore favicon request in headed browser
@@ -223,9 +212,6 @@ async function loadConfig(configEnv: ConfigEnv) {
223
212
usePolling : true ,
224
213
interval : 100 ,
225
214
} ,
226
- fs : {
227
- strict : ! isBuild ,
228
- } ,
229
215
} ,
230
216
build : {
231
217
// esbuild do not minify ES lib output since that would remove pure annotations and break tree-shaking
@@ -253,6 +239,7 @@ export async function startDefaultServe(): Promise<void> {
253
239
await page . goto ( viteTestUrl )
254
240
} else {
255
241
process . env . VITE_INLINE = 'inline-build'
242
+ let resolvedConfig : ResolvedConfig
256
243
// determine build watch
257
244
const resolvedPlugin : ( ) => PluginOption = ( ) => ( {
258
245
name : 'vite-plugin-watcher' ,
0 commit comments