@testing-library/jest-dom
Advanced tools
Comparing version 6.0.0 to 6.0.1
{ | ||
"name": "@testing-library/jest-dom", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Custom jest matchers to test the state of the DOM", | ||
@@ -19,3 +19,4 @@ "main": "dist/index.js", | ||
"test:update": "npm test -- --updateSnapshot --coverage", | ||
"validate": "kcd-scripts validate" | ||
"test:types": "tsc -p types/__tests__/jest && tsc -p types/__tests__/jest-globals && tsc -p types/__tests__/vitest", | ||
"validate": "kcd-scripts validate && npm run test:types" | ||
}, | ||
@@ -114,3 +115,4 @@ "files": [ | ||
"coverage", | ||
"dist" | ||
"dist", | ||
"types/__tests__" | ||
], | ||
@@ -117,0 +119,0 @@ "repository": { |
@@ -7,3 +7,6 @@ import {type expect} from '@jest/globals' | ||
export interface Matchers<R extends void | Promise<void>> | ||
extends TestingLibraryMatchers<typeof expect.stringContaining, R> {} | ||
extends TestingLibraryMatchers< | ||
ReturnType<typeof expect.stringContaining>, | ||
R | ||
> {} | ||
} |
@@ -8,4 +8,7 @@ /// <reference types="jest" /> | ||
interface Matchers<R = void, T = {}> | ||
extends TestingLibraryMatchers<typeof expect.stringContaining, R> {} | ||
extends TestingLibraryMatchers< | ||
ReturnType<typeof expect.stringContaining>, | ||
R | ||
> {} | ||
} | ||
} |
declare namespace matchers { | ||
interface TestingLibraryMatchers<E, R> extends Record<string, any> { | ||
interface TestingLibraryMatchers<E, R> { | ||
/** | ||
@@ -665,3 +665,6 @@ * @deprecated | ||
declare const matchers: matchers.TestingLibraryMatchers<any, void> | ||
// Needs to extend Record<string, any> to be accepted by expect.extend() | ||
// as it requires a string index signature. | ||
declare const matchers: matchers.TestingLibraryMatchers<any, void> & | ||
Record<string, any> | ||
export = matchers |
@@ -7,3 +7,6 @@ import {type expect} from 'vitest' | ||
interface JestAssertion<T = any> | ||
extends TestingLibraryMatchers<typeof expect.stringContaining, T> {} | ||
extends TestingLibraryMatchers< | ||
ReturnType<typeof expect.stringContaining>, | ||
T | ||
> {} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
189989
52
2570