diff --git a/test/vitest.setup.ts b/test/vitest.setup.ts index 1ffa54fed..a57a38bf4 100644 --- a/test/vitest.setup.ts +++ b/test/vitest.setup.ts @@ -1,3 +1,5 @@ +(global as any).__WEEX__ = false + import './helpers/shim-done' import './helpers/to-have-warned' import './helpers/wait-for-update' diff --git a/vitest.config.ts b/vitest.config.ts index 27d492979..de4938c06 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -16,9 +16,6 @@ export default defineConfig({ vue: resolve('src/platforms/web/entry-runtime-with-compiler') } }, - define: { - __WEEX__: false - }, test: { globals: true, environment: 'jsdom',