Skip to content

Commit

Permalink
fix(types): add missing types for Vue Router
Browse files Browse the repository at this point in the history
  • Loading branch information
afontcu committed Dec 13, 2020
1 parent 56e0152 commit 49208ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import {EmitsOptions} from 'vue'
import {MountingOptions} from '@vue/test-utils'
import {StoreOptions} from 'vuex'
import {RouteRecordRaw} from 'vue-router'
import {queries, EventType, BoundFunctions} from '@testing-library/dom'
// eslint-disable-next-line import/no-extraneous-dependencies
import {OptionsReceived as PrettyFormatOptions} from 'pretty-format'
Expand Down Expand Up @@ -33,7 +34,7 @@ type VueTestUtilsRenderOptions = Omit<
>
type VueTestingLibraryRenderOptions = {
store?: StoreOptions<{}>
// router?: ¿¿¿???
routes?: RouteRecordRaw[]
container?: Element
baseElement?: Element
}
Expand Down
1 change: 1 addition & 0 deletions types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function testOptions() {
state: {count: 3},
strict: true,
},
routes: [{path: '/', component: () => SomeComponent, name: 'route name'}],
baseElement: document.createElement('div'),
container: document.createElement('div'),
})
Expand Down

0 comments on commit 49208ef

Please sign in to comment.