Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: testing-library/vue-testing-library
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.4.0
Choose a base ref
...
head repository: testing-library/vue-testing-library
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.4.1
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Nov 20, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a5bd6cc View commit details
Showing with 8 additions and 8 deletions.
  1. +7 −7 types/index.d.ts
  2. +1 −1 types/test.ts
14 changes: 7 additions & 7 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -12,13 +12,13 @@ import {queries, EventType, BoundFunctions} from '@testing-library/dom'
export * from '@testing-library/dom'

export interface RenderResult extends BoundFunctions<typeof queries> {
container: HTMLElement
baseElement: HTMLElement
container: Element
baseElement: Element
debug: (
baseElement?:
| HTMLElement
| Element
| DocumentFragment
| Array<HTMLElement | DocumentFragment>,
| Array<Element | DocumentFragment>,
maxLength?: number,
options?: PrettyFormatOptions,
) => void
@@ -36,8 +36,8 @@ export interface RenderOptions<V extends Vue, S = {}>
props?: object
store?: StoreOptions<S>
routes?: RouteConfig[]
container?: HTMLElement
baseElement?: HTMLElement
container?: Element
baseElement?: Element
}

export type ConfigurationCallback<V extends Vue> = (
@@ -68,7 +68,7 @@ export interface VueFireEventObject extends AsyncFireObject {
element: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,
value: string,
): Promise<void>
update(element: HTMLElement, value?: string): Promise<void>
update(element: Element, value?: string): Promise<void>
}

export const fireEvent: VueFireEventObject
2 changes: 1 addition & 1 deletion types/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from 'vue'
import {render, fireEvent, screen, waitFor} from '@testing-library/vue'

declare const elem: HTMLElement
declare const elem: Element

const SomeComponent = Vue.extend({
name: 'SomeComponent',