Sfoglia il codice sorgente

test: move __WEEX__ flag to runtime for tests

Evan You 3 anni fa
parent
commit
69edc9aec6
2 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 0
      test/vitest.setup.ts
  2. 0 3
      vitest.config.ts

+ 2 - 0
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'

+ 0 - 3
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',