index.ts 950 B

1234567891011121314151617181920212223
  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. export { default as toBeDescribedBy } from './toBeDescribedBy.ts'
  9. interface CustomMatchers<R = unknown> {
  10. toBeAvatarElement(options?: ToBeAvatarOptions): R
  11. toHaveClasses(classes?: string[]): R
  12. toHaveImagePreview(content: string): R
  13. toHaveCurrentUrl(url: `/${string}`): R
  14. toBeDescribedBy(text: string): R
  15. }
  16. declare module 'vitest' {
  17. // eslint-disable-next-line @typescript-eslint/no-empty-object-type
  18. interface Assertion<T = any> extends CustomMatchers<T> {}
  19. }