forked from vuejs/vue-test-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
33 lines (31 loc) · 886 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import shallowMount from './shallow-mount'
import mount from './mount'
import createLocalVue from './create-local-vue'
import TransitionStub from './components/TransitionStub'
import TransitionGroupStub from './components/TransitionGroupStub'
import RouterLinkStub from './components/RouterLinkStub'
import createWrapper from './create-wrapper'
import Wrapper from './wrapper'
import WrapperArray from './wrapper-array'
import config from './config'
import { warn } from 'shared/util'
function shallow (component, options) {
warn(
`shallow has been renamed to shallowMount. shallow ` +
`will be removed in 1.0.0, use shallowMount instead`
)
return shallowMount(component, options)
}
export default {
createLocalVue,
createWrapper,
config,
mount,
shallow,
shallowMount,
TransitionStub,
TransitionGroupStub,
RouterLinkStub,
Wrapper,
WrapperArray
}