@@ -68,8 +68,6 @@ export const serverLogs: string[] = []
6868export const browserLogs : string [ ] = [ ]
6969export const browserErrors : Error [ ] = [ ]
7070
71- export let resolvedConfig : ResolvedConfig = undefined !
72-
7371export let page : Page = undefined !
7472export let browser : Browser = undefined !
7573export let viteTestUrl : string = ''
@@ -104,15 +102,6 @@ beforeAll(async (s) => {
104102 browser = await chromium . connect ( wsEndpoint )
105103 page = await browser . newPage ( )
106104
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-
116105 try {
117106 page . on ( 'console' , ( msg ) => {
118107 // ignore favicon request in headed browser
@@ -223,9 +212,6 @@ async function loadConfig(configEnv: ConfigEnv) {
223212 usePolling : true ,
224213 interval : 100 ,
225214 } ,
226- fs : {
227- strict : ! isBuild ,
228- } ,
229215 } ,
230216 build : {
231217 // 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> {
253239 await page . goto ( viteTestUrl )
254240 } else {
255241 process . env . VITE_INLINE = 'inline-build'
242+ let resolvedConfig : ResolvedConfig
256243 // determine build watch
257244 const resolvedPlugin : ( ) => PluginOption = ( ) => ( {
258245 name : 'vite-plugin-watcher' ,
0 commit comments