index.ts 846 B

123456789101112131415161718192021
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. /* eslint-disable @typescript-eslint/no-empty-interface */
  3. import type { ToBeAvatarOptions } from './toBeAvatarElement.ts'
  4. export { default as toBeAvatarElement } from './toBeAvatarElement.ts'
  5. export { default as toHaveClasses } from './toHaveClasses.ts'
  6. export { default as toHaveImagePreview } from './toHaveImagePreview.ts'
  7. export { default as toHaveCurrentUrl } from './toHaveCurrentUrl.ts'
  8. interface CustomMatchers<R = unknown> {
  9. toBeAvatarElement(options?: ToBeAvatarOptions): R
  10. toHaveClasses(classes?: string[]): R
  11. toHaveImagePreview(content: string): R
  12. toHaveCurrentUrl(url: `/${string}`): R
  13. }
  14. declare module 'vitest' {
  15. interface Assertion<T = any> extends CustomMatchers<T> {}
  16. interface AsymmetricMatchersContaining extends CustomMatchers {}
  17. }