diff --git a/playground/spa/vite.config.ts b/playground/spa/vite.config.ts index 7f9cba2..c519161 100644 --- a/playground/spa/vite.config.ts +++ b/playground/spa/vite.config.ts @@ -9,7 +9,6 @@ export default defineConfig(() => ({ define: { haha: JSON.stringify('custom define!'), app: JSON.stringify({ hello: 'world' }), - __REACT_DEVTOOLS_GLOBAL_HOOK__: JSON.stringify('({ isDisabled: true })'), }, plugins: [ react(), diff --git a/playground/vitestSetup.ts b/playground/vitestSetup.ts index 0fe06b6..7dde44e 100644 --- a/playground/vitestSetup.ts +++ b/playground/vitestSetup.ts @@ -176,7 +176,6 @@ beforeAll(async (s) => { return async () => { serverLogs.length = 0 - browserLogs.length = 0 await page?.close() await server?.close() await watcher?.close() @@ -344,7 +343,7 @@ function loadConfigFromDir(dir: string) { } async function goToUrlAndWaitForViteWSConnect(page: Page, url: string) { - return Promise.all([page.goto(url), waitForViteConnect(page, 15000)]) + return Promise.all([page.goto(url), waitForViteConnect(page, 50000)]) } export async function waitForViteConnect(page: Page, timeoutMS = 5000) { @@ -363,6 +362,7 @@ export async function waitForViteConnect(page: Page, timeoutMS = 5000) { pageConsoleListener = (data) => { const text = data.text() if (text.includes('[vite] connected.')) { + console.log(browserLogs, 'browserLogs') resolve() } }