| 123456789101112131415161718192021222324252627282930313233343536 |
- 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
- }
|