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 { mockWarn } from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
import { baseParse, baseCompile } from '@vue/compiler-core'
describe('compiler:sfc', () => {
ref,
WritableComputedRef
} from '../src'
-import { mockWarn } from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
describe('reactivity/computed', () => {
mockWarn()
import { ref, isRef } from '../src/ref'
import { reactive, isReactive, toRaw, markNonReactive } from '../src/reactive'
-import { mockWarn } from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
import { computed } from '../src/computed'
describe('reactivity/reactive', () => {
ref,
shallowReadonly
} from '../src'
-import { mockWarn } from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
/**
* @see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html
h,
nodeOps,
serializeInner,
- mockWarn,
provide,
inject,
resolveComponent,
ref,
getCurrentInstance
} from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
describe('api: createApp', () => {
mockWarn()
readonly,
reactive
} from '../src/index'
-import { render, nodeOps, serialize, mockWarn } from '@vue/runtime-test'
+import { render, nodeOps, serialize } from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
// reference: https://vue-composition-api-rfc.netlify.com/api.html#provide-inject
nextTick,
renderToString,
ref,
- defineComponent,
- mockWarn
+ defineComponent
} from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
describe('api: options', () => {
test('data', async () => {
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'
+import { mockWarn } from '@vue/shared'
// reference: https://vue-composition-api-rfc.netlify.com/api.html#watch
-import {
- createApp,
- getCurrentInstance,
- nodeOps,
- mockWarn
-} from '@vue/runtime-test'
+import { createApp, getCurrentInstance, nodeOps } from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
import { ComponentInternalInstance } from '../src/component'
describe('component: proxy', () => {
watch,
ref,
nextTick,
- mockWarn,
defineComponent
} from '@vue/runtime-test'
import { setErrorRecovery } from '../src/errorHandling'
+import { mockWarn } from '@vue/shared'
describe('error handling', () => {
mockWarn()
import {
- mockWarn,
createApp,
nodeOps,
resolveComponent,
resolveDynamicComponent,
getCurrentInstance
} from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
describe('resolveAssets', () => {
test('should work', () => {
import { toHandlers } from '../../src/helpers/toHandlers'
-import { mockWarn } from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
describe('toHandlers', () => {
mockWarn()
onUpdated,
defineComponent
} from '@vue/runtime-dom'
-import { mockWarn } from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
describe('attribute fallthrough', () => {
mockWarn()
NodeTypes,
TestElement,
serialize,
- serializeInner,
- mockWarn
+ serializeInner
} from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
mockWarn()
NodeOpTypes,
nextTick,
serialize,
- triggerEvent,
- mockWarn
+ triggerEvent
} from '../src'
+import { mockWarn } from '@vue/shared'
describe('test renderer', () => {
mockWarn()
export * from './triggerEvent'
export * from './serialize'
export * from './nodeOps'
-export * from './utils/mockWarn'
export * from '@vue/runtime-core'
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'
-import { mockWarn } from '@vue/runtime-test'
+import { mockWarn } from '@vue/shared'
describe('compiler + runtime integration', () => {
mockWarn()