Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@testing-library/jest-dom

Package Overview
Dependencies
Maintainers
15
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testing-library/jest-dom - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

types/__tests__/jest-globals/jest-globals-custom-expect-types.test.ts

8

package.json
{
"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
> {}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc