mirror of
https://github.com/vuejs/vue.git
synced 2024-11-21 12:18:54 +00:00
37 lines
785 B
TypeScript
37 lines
785 B
TypeScript
interface Chainer {
|
|
then(next: Function): this
|
|
thenWaitFor(n: number | Function): this
|
|
end(endFn: Function): void
|
|
}
|
|
|
|
declare function waitForUpdate(cb: Function): Chainer
|
|
|
|
declare function createTextVNode(arg?: string): any
|
|
|
|
declare function triggerEvent(
|
|
target: Element,
|
|
event: string,
|
|
process?: (e: any) => void
|
|
): void
|
|
|
|
// vitest extends jest namespace so we can just extend jest.Matchers
|
|
declare namespace jest {
|
|
interface Matchers<R, T> {
|
|
toHaveBeenWarned(): R
|
|
toHaveBeenWarnedLast(): R
|
|
toHaveBeenWarnedTimes(n: number): R
|
|
toHaveBeenTipped(): R
|
|
toHaveClass(cls: string): R
|
|
}
|
|
}
|
|
|
|
declare const jasmine: {
|
|
createSpy: (id?: string) => {
|
|
(...args: any[]): any
|
|
calls: {
|
|
count(): number
|
|
}
|
|
}
|
|
addMatchers(matchers: any): void
|
|
}
|