close #652
@@ -1,5 +1,5 @@
import { compileStyle } from '../src/compileStyle'
-import { mockWarn } from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
function compile(source: string): string {
const res = compileStyle({
import { parse } from '../src'
import { baseParse, baseCompile } from '@vue/compiler-core'
describe('compiler:sfc', () => {
@@ -6,7 +6,7 @@ import {
ref,
WritableComputedRef
} from '../src'
describe('reactivity/computed', () => {
mockWarn()
@@ -1,6 +1,6 @@
import { ref, isRef } from '../src/ref'
import { reactive, isReactive, toRaw, markNonReactive } from '../src/reactive'
import { computed } from '../src/computed'
describe('reactivity/reactive', () => {
@@ -12,7 +12,7 @@ import {
shallowReadonly
/**
* @see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html
@@ -3,7 +3,6 @@ import {
h,
nodeOps,
serializeInner,
- mockWarn,
provide,
inject,
resolveComponent,
@@ -13,6 +12,7 @@ import {
getCurrentInstance
} from '@vue/runtime-test'
describe('api: createApp', () => {
@@ -9,7 +9,8 @@ import {
readonly,
reactive
} from '../src/index'
-import { render, nodeOps, serialize, mockWarn } from '@vue/runtime-test'
+import { render, nodeOps, serialize } from '@vue/runtime-test'
// reference: https://vue-composition-api-rfc.netlify.com/api.html#provide-inject
@@ -8,9 +8,9 @@ import {
nextTick,
renderToString,
- defineComponent,
- mockWarn
+ defineComponent
describe('api: options', () => {
test('data', async () => {
@@ -1,11 +1,12 @@
import { watch, reactive, computed, nextTick, ref, h } from '../src/index'
-import { render, nodeOps, serializeInner, mockWarn } from '@vue/runtime-test'
+import { render, nodeOps, serializeInner } from '@vue/runtime-test'
import {
ITERATE_KEY,
DebuggerEvent,
TrackOpTypes,
TriggerOpTypes
} from '@vue/reactivity'
// reference: https://vue-composition-api-rfc.netlify.com/api.html#watch
@@ -1,9 +1,5 @@
-import {
- createApp,
- getCurrentInstance,
- nodeOps,
-} from '@vue/runtime-test'
+import { createApp, getCurrentInstance, nodeOps } from '@vue/runtime-test'
import { ComponentInternalInstance } from '../src/component'
describe('component: proxy', () => {
@@ -7,10 +7,10 @@ import {
watch,
defineComponent
import { setErrorRecovery } from '../src/errorHandling'
describe('error handling', () => {
@@ -1,5 +1,4 @@
createApp,
@@ -9,6 +8,7 @@ import {
resolveDynamicComponent,
describe('resolveAssets', () => {
test('should work', () => {
import { toHandlers } from '../../src/helpers/toHandlers'
describe('toHandlers', () => {
@@ -8,7 +8,7 @@ import {
onUpdated,
} from '@vue/runtime-dom'
describe('attribute fallthrough', () => {
@@ -6,9 +6,9 @@ import {
NodeTypes,
TestElement,
serialize,
- serializeInner,
+ serializeInner
@@ -12,9 +12,9 @@ import {
NodeOpTypes,
- triggerEvent,
+ triggerEvent
describe('test renderer', () => {
@@ -26,5 +26,4 @@ export function renderToString(vnode: VNode) {
export * from './triggerEvent'
export * from './serialize'
export * from './nodeOps'
-export * from './utils/mockWarn'
export * from '@vue/runtime-core'
@@ -5,6 +5,7 @@ export * from './patchFlags'
export * from './globalsWhitelist'
export * from './codeframe'
export * from './domTagConfig'
+export * from './mockWarn'
export const EMPTY_OBJ: { readonly [key: string]: any } = __DEV__
? Object.freeze({})
import { createApp } from '../src'
describe('compiler + runtime integration', () => {