test: move __WEEX__ flag to runtime for tests

This commit is contained in:
Evan You 2022-05-20 08:24:05 +08:00
parent 5ec77f32be
commit 69edc9aec6
2 changed files with 2 additions and 3 deletions

View File

@ -1,3 +1,5 @@
(global as any).__WEEX__ = false
import './helpers/shim-done'
import './helpers/to-have-warned'
import './helpers/wait-for-update'

View File

@ -16,9 +16,6 @@ export default defineConfig({
vue: resolve('src/platforms/web/entry-runtime-with-compiler')
}
},
define: {
__WEEX__: false
},
test: {
globals: true,
environment: 'jsdom',