/types-testing-library-vitest-dom

TypeScript definitions for @testing-library/jest-dom (with Vitest)

MIT LicenseMIT

types-testing-library-vitest-dom

Installation (Yarn)

"resolutions": {
  "@types/testing-library__jest-dom": "github:erictaylor/types-testing-library-vitest-dom"
}

Installation (NPM)

"overrides": {
  "@types/testing-library__jest-dom": "github:erictaylor/types-testing-library-vitest-dom"
}

Test Setup File

import matchers from "@testing-library/jest-dom/matchers";
import { expect } from "vitest";

expect.extend(matchers);

Summary

This package contains type definitions for @testing-library/jest-dom to be used with Vitest without using all the Jest global typing.